Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",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.001004/0.001004, allocations: 98.97 kB / 17 MB, free: 6.105 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.001258/0.001258, allocations: 181.6 kB / 17.89 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 241.9 MB, free: 236 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2221/0.2221, allocations: 44.22 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004916/0.0004918, allocations: 5.219 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1337, allocations: 61.92 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002148/0.136, allocations: 1.555 MB / 473.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1371, allocations: 0.4991 MB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.323e-05/0.1373, allocations: 4 kB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.888e-05/0.1373, allocations: 11.91 kB / 473.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002623/0.1376, allocations: 31.78 kB / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.1379, allocations: 75.33 kB / 473.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.1381, allocations: 131.4 kB / 474 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1383, allocations: 28.97 kB / 474 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.1385, allocations: 59.77 kB / 474 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.1386, allocations: 55.75 kB / 474.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.76e-05/0.1386, allocations: 8 kB / 474.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.435e-05/0.1387, allocations: 12 kB / 474.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.35e-05/0.1387, allocations: 23.91 kB / 474.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.134e-05/0.1388, allocations: 45.64 kB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.1389, allocations: 99.95 kB / 474.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1389, allocations: 0 / 474.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1389, allocations: 0 / 474.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1389, allocations: 0 / 474.3 MB, free: 10.97 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007888/0.1397, allocations: 438.9 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1398, allocations: 8.031 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.205e-05/0.1398, allocations: 38.56 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.1399, allocations: 7.906 kB / 474.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.1401, allocations: 197.5 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1401, allocations: 7.938 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.1401, allocations: 15.95 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.1405, allocations: 136.2 kB / 475.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1405, allocations: 0 / 475.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.1405, allocations: 11.98 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.1406, allocations: 4 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003245/0.1409, allocations: 103.8 kB / 475.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.1419, allocations: 459.4 kB / 475.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.1424, allocations: 98.47 kB / 475.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.1426, allocations: 48.92 kB / 475.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.1426, allocations: 0 / 475.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1426, allocations: 30.56 kB / 475.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.663e-06/0.1426, allocations: 0 / 475.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001392/0.144, allocations: 369.1 kB / 476.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.1441, allocations: 106.8 kB / 476.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.1443, allocations: 156.2 kB / 476.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.1443, allocations: 29.7 kB / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.877e-05/0.1444, allocations: 108.1 kB / 476.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.1445, allocations: 23.66 kB / 476.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.814e-06/0.1445, allocations: 0 / 476.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1446, allocations: 322.8 kB / 476.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.1448, allocations: 67.95 kB / 477 MB, free: 7.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.1451, allocations: 112.2 kB / 477.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.1454, allocations: 71.98 kB / 477.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1454, allocations: 0 / 477.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005435/0.1459, allocations: 197.4 kB / 477.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.146, allocations: 7.953 kB / 477.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.146, allocations: 0 / 477.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.146, allocations: 8.062 kB / 477.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.1467, allocations: 87.91 kB / 477.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001976/0.1486, allocations: 1.406 MB / 478.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.1489, allocations: 32.44 kB / 478.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.1489, allocations: 8 kB / 478.9 MB, free: 5.918 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.1491, allocations: 113.8 kB / 479 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.134e-05/0.1492, allocations: 11.86 kB / 479.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000552/0.1497, allocations: 202.3 kB / 479.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1497, allocations: 4.125 kB / 479.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.1498, allocations: 0 / 479.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1498, allocations: 3.938 kB / 479.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000901/0.1507, allocations: 494.2 kB / 479.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.1507, allocations: 0 / 479.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.1509, allocations: 31.97 kB / 479.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.1509, allocations: 4 kB / 479.8 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1509, allocations: 4 kB / 479.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1509, allocations: 3.938 kB / 479.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1509, allocations: 0 / 479.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.1515, allocations: 271.4 kB / 480.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.1515, allocations: 84.97 kB / 480.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.1516, allocations: 4 kB / 480.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.1518, allocations: 31.97 kB / 480.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.1519, allocations: 7.984 kB / 480.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.1519, allocations: 7.938 kB / 480.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.152, allocations: 109.8 kB / 480.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.152, allocations: 0 / 480.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00029/0.1523, allocations: 32 kB / 480.3 MB, free: 4.422 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0008656/0.1532, allocations: 0.806 MB / 481.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008884/0.1541, allocations: 199.9 kB / 481.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1541, allocations: 0 / 481.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.1543, allocations: 75.95 kB / 481.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.1548, allocations: 11.98 kB / 481.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.1575, allocations: 0.9855 MB / 482.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.1578, allocations: 0.7004 MB / 483.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.773e-05/0.1579, allocations: 16.41 kB / 483.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.215e-05/0.158, allocations: 35.42 kB / 483.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.158, allocations: 3.938 kB / 483.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.1722, allocations: 2.737 MB / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.1724, allocations: 221.5 kB / 486.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/1.958, allocations: 11.75 kB / 486.1 MB, free: 14.68 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat does not exist to compare? outputFormat=mat