Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_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.001048/0.001048, allocations: 97 kB / 16.94 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.001019/0.001019, allocations: 179 kB / 17.82 MB, free: 5.652 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.512/1.512, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004317/0.0004322, allocations: 12 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002817/0.111, allocations: 2.218 MB / 330.6 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1122, allocations: 0.6753 MB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.1124, allocations: 11.94 kB / 331.3 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.37e-05/0.1125, allocations: 39.69 kB / 331.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.1127, allocations: 99.7 kB / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.113, allocations: 55.88 kB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.1133, allocations: 243.5 kB / 331.8 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.1136, allocations: 98.27 kB / 331.9 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.1137, allocations: 123.5 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.1139, allocations: 135.4 kB / 332.1 MB, free: 312 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.163e-05/0.114, allocations: 20 kB / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.58e-05/0.114, allocations: 16 kB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.197e-05/0.1141, allocations: 51.81 kB / 332.2 MB, free: 224 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.035e-05/0.1142, allocations: 81.52 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003021/0.1145, allocations: 283.4 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1145, allocations: 0 / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1145, allocations: 0 / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1145, allocations: 0 / 332.6 MB, free: 15.86 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001136/0.1157, allocations: 0.6146 MB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1157, allocations: 8.031 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.434e-05/0.1158, allocations: 58.55 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.463e-05/0.1159, allocations: 31.62 kB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003326/0.1162, allocations: 275.4 kB / 333.5 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.1162, allocations: 24.52 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.845e-05/0.1163, allocations: 24 kB / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006359/0.1169, allocations: 307.4 kB / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1169, allocations: 0 / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.117, allocations: 12 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.117, allocations: 4 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007891/0.1178, allocations: 273.5 kB / 334.2 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.1195, allocations: 1.109 MB / 335.3 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/0.1203, allocations: 246.5 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1204, allocations: 4 kB / 335.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.1208, allocations: 178.1 kB / 335.7 MB, free: 12.47 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.1208, allocations: 0 / 335.7 MB, free: 12.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001968/0.1228, allocations: 0.5419 MB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/0.1229, allocations: 110.8 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/0.1233, allocations: 286.5 kB / 336.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.1233, allocations: 33.7 kB / 336.7 MB, free: 11.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.1235, allocations: 187.6 kB / 336.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.1235, allocations: 39.45 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.1236, allocations: 4 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1237, allocations: 338.8 kB / 337.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.1241, allocations: 108.2 kB / 337.3 MB, free: 10.76 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003949/0.1245, allocations: 214 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.1249, allocations: 145 kB / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.1249, allocations: 3.938 kB / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001207/0.1261, allocations: 455.6 kB / 338.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.1261, allocations: 33.7 kB / 338.1 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1262, allocations: 4 kB / 338.1 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003229/0.1265, allocations: 76.89 kB / 338.2 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.1267, allocations: 51.91 kB / 338.3 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.1289, allocations: 1.617 MB / 339.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.1293, allocations: 63.72 kB / 340 MB, free: 7.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.1293, allocations: 12 kB / 340 MB, free: 7.898 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 21 * 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.0001575/0.1295, allocations: 145.7 kB / 340.1 MB, free: 7.746 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.1295, allocations: 23.72 kB / 340.1 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.492e-05/0.1296, allocations: 25.7 kB / 340.2 MB, free: 7.699 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1296, allocations: 4 kB / 340.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.1296, allocations: 0 / 340.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1296, allocations: 3.953 kB / 340.2 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.1298, allocations: 301.4 kB / 340.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1299, allocations: 0 / 340.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.13, allocations: 28.34 kB / 340.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000238/0.1302, allocations: 72.75 kB / 340.6 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.1303, allocations: 7.984 kB / 340.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.1323, allocations: 1.597 MB / 342.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1323, allocations: 0 / 342.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.1333, allocations: 337.4 kB / 342.5 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.1334, allocations: 116.8 kB / 342.6 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/0.1335, allocations: 0 / 342.6 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.1337, allocations: 39.95 kB / 342.6 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.545e-05/0.1338, allocations: 19.97 kB / 342.7 MB, free: 4.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.1338, allocations: 4 kB / 342.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002171/0.134, allocations: 206 kB / 342.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1341, allocations: 0 / 342.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.1344, allocations: 75.84 kB / 342.9 MB, free: 4.688 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 (7): * Single equations (assignments): 4 * 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.00134/0.1358, allocations: 0.8743 MB / 343.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009625/0.1368, allocations: 437.8 kB / 344.2 MB, free: 3.324 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1368, allocations: 0 / 344.2 MB, free: 3.324 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.1372, allocations: 231.2 kB / 344.5 MB, free: 3.086 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.1375, allocations: 44.8 kB / 344.5 MB, free: 3.039 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.1416, allocations: 3.651 MB / 348.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.142, allocations: 0.7596 MB / 348.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.1421, allocations: 22.3 kB / 348.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1422, allocations: 79.41 kB / 349 MB, free: 14.4 MB / 302.1 MB Notification: Performance of SimCode: time 2.384e-06/0.1422, allocations: 0 / 349 MB, free: 14.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.1606, allocations: 5.98 MB / 355 MB, free: 8.426 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.1608, allocations: 221.8 kB / 355.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.024, allocations: 0 / 355.2 MB, free: 8.172 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.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.InvertingAmp_res.mat does not exist to compare? outputFormat=mat