Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001604/0.001609, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003807, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09884, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004271/0.1032, allocations: 2.561 MB / 377.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.1055, allocations: 0.9524 MB / 378.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.1058, allocations: 4 kB / 378.2 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.1059, allocations: 43.67 kB / 378.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005791/0.1065, allocations: 135.6 kB / 378.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004285/0.107, allocations: 115.7 kB / 378.4 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005672/0.1075, allocations: 311.4 kB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.1078, allocations: 102.5 kB / 378.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002876/0.1081, allocations: 159.4 kB / 379 MB, free: 10.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.1085, allocations: 179.2 kB / 379.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.525e-05/0.1086, allocations: 20 kB / 379.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.1088, allocations: 55.97 kB / 379.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.68e-05/0.1089, allocations: 67.69 kB / 379.3 MB, free: 10.63 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.109, allocations: 101.4 kB / 379.4 MB, free: 10.53 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005985/0.1097, allocations: 367.2 kB / 379.8 MB, free: 10.17 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.1097, allocations: 0 / 379.8 MB, free: 10.17 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1097, allocations: 4 kB / 379.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1097, allocations: 0 / 379.8 MB, free: 10.16 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001911/0.1116, allocations: 0.6779 MB / 380.5 MB, free: 9.438 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1117, allocations: 8.031 kB / 380.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001277/0.1118, allocations: 70.53 kB / 380.5 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.112, allocations: 51.44 kB / 380.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005174/0.1125, allocations: 290.3 kB / 380.9 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.135e-05/0.1125, allocations: 32.61 kB / 380.9 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.031e-05/0.1126, allocations: 39.91 kB / 380.9 MB, free: 8.906 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.1137, allocations: 349 kB / 381.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.1137, allocations: 0 / 381.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.048e-05/0.1138, allocations: 16 kB / 381.3 MB, free: 8.539 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1138, allocations: 8 kB / 381.3 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009185/0.1147, allocations: 238.5 kB / 381.5 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/0.1178, allocations: 1.19 MB / 382.7 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.119, allocations: 299.7 kB / 383 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001094/0.1202, allocations: 1.117 MB / 384.1 MB, free: 5.355 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.1202, allocations: 38.8 kB / 384.2 MB, free: 5.309 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 5.25e-06/0.1202, allocations: 3.938 kB / 384.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=27): time 0.001992/0.1222, allocations: 0.5012 MB / 384.7 MB, free: 4.777 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.1223, allocations: 81.11 kB / 384.8 MB, free: 4.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.1229, allocations: 341.6 kB / 385.1 MB, free: 4.34 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.123, allocations: 33.7 kB / 385.1 MB, free: 4.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.1232, allocations: 262.5 kB / 385.4 MB, free: 4.043 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.1233, allocations: 94.69 kB / 385.5 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.1234, allocations: 8 kB / 385.5 MB, free: 3.941 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1235, allocations: 326.8 kB / 385.8 MB, free: 3.613 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004147/0.1239, allocations: 112.7 kB / 385.9 MB, free: 3.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004905/0.1244, allocations: 182 kB / 386.1 MB, free: 3.293 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004688/0.1249, allocations: 135.5 kB / 386.2 MB, free: 3.16 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1249, allocations: 4 kB / 386.2 MB, free: 3.156 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001107/0.1261, allocations: 357.2 kB / 386.6 MB, free: 2.801 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.1261, allocations: 7.953 kB / 386.6 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1261, allocations: 4 kB / 386.6 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.1261, allocations: 4 kB / 386.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008063/0.127, allocations: 99.88 kB / 386.7 MB, free: 2.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.127, allocations: 4 kB / 386.7 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.1274, allocations: 47.61 kB / 386.7 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.391e-05/0.1275, allocations: 16 kB / 386.7 MB, free: 2.621 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.1278, allocations: 149.7 kB / 386.9 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.556e-05/0.1279, allocations: 35.53 kB / 386.9 MB, free: 2.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001212/0.1291, allocations: 342.2 kB / 387.3 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1291, allocations: 4 kB / 387.3 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.1291, allocations: 7.938 kB / 387.3 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.1291, allocations: 0 / 387.3 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006814/0.1298, allocations: 393.2 kB / 387.7 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1299, allocations: 0 / 387.7 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007199/0.1306, allocations: 63.95 kB / 387.7 MB, free: 1.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002886/0.1309, allocations: 40.78 kB / 387.8 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.1309, allocations: 11.98 kB / 387.8 MB, free: 1.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005546/0.1315, allocations: 0.5601 MB / 388.3 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.1315, allocations: 4.031 kB / 388.3 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.1331, allocations: 0.5327 MB / 388.9 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.1334, allocations: 132.6 kB / 389 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.117e-05/0.1335, allocations: 7.938 kB / 389 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/0.1339, allocations: 27.97 kB / 389 MB, free: 200 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.174e-05/0.134, allocations: 19.94 kB / 389.1 MB, free: 180 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/0.1341, allocations: 15.98 kB / 389.1 MB, free: 164 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.2549/0.389, allocations: 231.1 kB / 389.3 MB, free: 20.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3891, allocations: 0.9688 kB / 389.3 MB, free: 20.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006915/0.3898, allocations: 106.3 kB / 389.4 MB, free: 20.85 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002048/0.3919, allocations: 1.091 MB / 390.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.3929, allocations: 275.4 kB / 390.8 MB, free: 20.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3929, allocations: 0 / 390.8 MB, free: 20.18 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.3936, allocations: 133.7 kB / 390.9 MB, free: 20.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004816/0.3941, allocations: 36.72 kB / 390.9 MB, free: 20.18 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005443/0.3995, allocations: 3.593 MB / 394.5 MB, free: 17.95 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3999, allocations: 0.8003 MB / 395.3 MB, free: 17.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.4002, allocations: 131.3 kB / 395.4 MB, free: 17.15 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4002, allocations: 1.562 kB / 395.4 MB, free: 17.15 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.95/3.351, allocations: 6.25 MB / 401.7 MB, free: 15.84 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed_fmu --startTime=0 --stopTime=0.003 --timeout=50 --tolerance=2e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)