Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 90.78 kB / 16.93 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 180.4 kB / 17.82 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004837/0.0004839, allocations: 16.78 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1082, allocations: 47.56 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.003217/0.1114, allocations: 2.206 MB / 330.6 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.113, allocations: 0.6987 MB / 331.3 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.1133, allocations: 11.94 kB / 331.3 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.1134, allocations: 23.77 kB / 331.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003682/0.1138, allocations: 103.7 kB / 331.5 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.1142, allocations: 63.86 kB / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.1147, allocations: 231.5 kB / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.1149, allocations: 73.06 kB / 331.8 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.1152, allocations: 107.6 kB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002578/0.1154, allocations: 135.4 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.249e-05/0.1155, allocations: 16 kB / 332.1 MB, free: 336 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.489e-05/0.1156, allocations: 12 kB / 332.1 MB, free: 324 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-05/0.1156, allocations: 51.81 kB / 332.1 MB, free: 272 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.781e-05/0.1157, allocations: 69.58 kB / 332.2 MB, free: 196 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.116, allocations: 235.6 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1161, allocations: 0 / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1161, allocations: 0 / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1161, allocations: 0 / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00142/0.1175, allocations: 0.6106 MB / 333 MB, free: 15.29 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.1176, allocations: 12.03 kB / 333.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.587e-05/0.1177, allocations: 50.55 kB / 333.1 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1178, allocations: 31.62 kB / 333.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.1182, allocations: 274.2 kB / 333.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.1183, allocations: 16.44 kB / 333.4 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.1184, allocations: 24 kB / 333.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.119, allocations: 255.2 kB / 333.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1191, allocations: 0 / 333.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.1191, allocations: 12 kB / 333.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.1191, allocations: 8 kB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007921/0.1199, allocations: 281.5 kB / 334 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1216, allocations: 0.8894 MB / 334.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.1224, allocations: 274.6 kB / 335.1 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.1224, allocations: 3.953 kB / 335.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005039/0.1229, allocations: 198 kB / 335.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.123, allocations: 0 / 335.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.002061/0.125, allocations: 0.6981 MB / 336 MB, free: 12.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.1251, allocations: 106.8 kB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.1254, allocations: 253 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.1254, allocations: 33.7 kB / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.1256, allocations: 171.8 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.1256, allocations: 47.44 kB / 336.6 MB, free: 11.46 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.1256, allocations: 4 kB / 336.6 MB, free: 11.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1258, allocations: 334.8 kB / 337 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003052/0.1261, allocations: 111.9 kB / 337.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003649/0.1265, allocations: 171.6 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.1268, allocations: 137.6 kB / 337.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1268, allocations: 4 kB / 337.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001094/0.1279, allocations: 463.7 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003685/0.1283, allocations: 0.6445 MB / 338.5 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1283, allocations: 4 kB / 338.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000369/0.1287, allocations: 80.75 kB / 338.6 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.1289, allocations: 47.89 kB / 338.6 MB, free: 9.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/0.1312, allocations: 1.775 MB / 340.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.1315, allocations: 51.8 kB / 340.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.1316, allocations: 15.98 kB / 340.5 MB, free: 7.398 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.1316, allocations: 8.062 kB / 340.5 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007249/0.1323, allocations: 314.2 kB / 340.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.1323, allocations: 0 / 340.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-05/0.1325, allocations: 41.17 kB / 340.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.1326, allocations: 52 kB / 340.9 MB, free: 6.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.1339, allocations: 1.545 MB / 342.4 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.1342, allocations: 39.84 kB / 342.4 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.1342, allocations: 12 kB / 342.5 MB, free: 5.25 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002078/0.1344, allocations: 220.9 kB / 342.7 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.1345, allocations: 23.72 kB / 342.7 MB, free: 5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.485e-05/0.1345, allocations: 21.84 kB / 342.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1346, allocations: 4 kB / 342.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.1346, allocations: 0 / 342.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1346, allocations: 3.984 kB / 342.7 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.1349, allocations: 297.4 kB / 343 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1349, allocations: 3.953 kB / 343 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.135, allocations: 36.28 kB / 343.1 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/0.1352, allocations: 68.81 kB / 343.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.1353, allocations: 4 kB / 343.1 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.137, allocations: 1.675 MB / 344.8 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.137, allocations: 0 / 344.8 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.1379, allocations: 365.5 kB / 345.2 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.383e-05/0.138, allocations: 104.8 kB / 345.3 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.138, allocations: 8 kB / 345.3 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.1383, allocations: 31.97 kB / 345.3 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.366e-05/0.1384, allocations: 23.92 kB / 345.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.1384, allocations: 7.984 kB / 345.3 MB, free: 2.145 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.1386, allocations: 184.5 kB / 345.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1386, allocations: 0 / 345.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005861/0.1392, allocations: 131.6 kB / 345.6 MB, free: 1.84 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001281/0.1405, allocations: 0.9063 MB / 346.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.142, allocations: 0.7307 MB / 347.3 MB, free: 120 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.142, allocations: 0 / 347.3 MB, free: 120 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004975/0.1425, allocations: 254.8 kB / 347.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.1428, allocations: 48.48 kB / 347.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.1464, allocations: 2.538 MB / 350.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.1468, allocations: 0.7522 MB / 350.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.147, allocations: 26.28 kB / 350.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.1471, allocations: 67.42 kB / 351 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1471, allocations: 3.938 kB / 351 MB, free: 12.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.1657, allocations: 5.974 MB / 356.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.1659, allocations: 217.6 kB / 357.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.029, allocations: 0 / 357.1 MB, free: 6.105 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat