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.0009859/0.0009859, allocations: 89.88 kB / 16.98 MB, free: 5.938 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.0009366/0.0009367, allocations: 186.8 kB / 17.88 MB, free: 5.594 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.403/1.403, allocations: 223.2 MB / 241.8 MB, free: 384 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.2315/0.2315, allocations: 44.22 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1251, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.00192/0.1271, allocations: 1.528 MB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007564/0.1279, allocations: 491.3 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.936e-05/0.1279, allocations: 4 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.899e-05/0.128, allocations: 11.92 kB / 473.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.1281, allocations: 43.78 kB / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.1283, allocations: 63.42 kB / 473.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.1285, allocations: 95.8 kB / 473.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1286, allocations: 32.94 kB / 473.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.1287, allocations: 59.83 kB / 473.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.943e-05/0.1288, allocations: 63.69 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.1289, allocations: 8 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.259e-05/0.1289, allocations: 8 kB / 473.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.721e-05/0.1289, allocations: 23.91 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.129, allocations: 41.64 kB / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.1291, allocations: 103.9 kB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1291, allocations: 0 / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1291, allocations: 0 / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1291, allocations: 0 / 474.1 MB, free: 11.09 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.0007299/0.1299, allocations: 446.9 kB / 474.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.1299, allocations: 8.031 kB / 474.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.13, allocations: 42.55 kB / 474.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.688e-05/0.13, allocations: 11.91 kB / 474.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.1302, allocations: 178.9 kB / 474.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.1302, allocations: 7.938 kB / 474.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.1302, allocations: 11.95 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.1305, allocations: 142.2 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1306, allocations: 0 / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.1306, allocations: 4 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.1306, allocations: 0 / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.1309, allocations: 115.8 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007828/0.1317, allocations: 459.4 kB / 475.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.132, allocations: 98.47 kB / 475.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.1321, allocations: 3.938 kB / 475.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1321, allocations: 38.64 kB / 475.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.323e-06/0.1321, allocations: 0 / 475.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001352/0.1335, allocations: 361.1 kB / 476 MB, free: 9.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.1335, allocations: 102.8 kB / 476.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.1337, allocations: 147.9 kB / 476.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.1337, allocations: 25.7 kB / 476.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.812e-05/0.1338, allocations: 120.1 kB / 476.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.1338, allocations: 19.66 kB / 476.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.1338, allocations: 4 kB / 476.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1339, allocations: 318.8 kB / 476.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.1342, allocations: 75.94 kB / 476.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.1344, allocations: 100.2 kB / 476.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.1347, allocations: 75.83 kB / 476.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1347, allocations: 4.031 kB / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000529/0.1352, allocations: 201.4 kB / 477.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1352, allocations: 7.953 kB / 477.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1353, allocations: 0 / 477.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1353, allocations: 4 kB / 477.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005759/0.1359, allocations: 91.97 kB / 477.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.1372, allocations: 1.418 MB / 478.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.1375, allocations: 32.19 kB / 478.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.1375, allocations: 4 kB / 478.7 MB, free: 6.07 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.0001237/0.1376, allocations: 117.8 kB / 478.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.1377, allocations: 15.84 kB / 478.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005107/0.1382, allocations: 182.3 kB / 479 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1382, allocations: 4 kB / 479 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.1382, allocations: 0 / 479 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1382, allocations: 0 / 479 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008494/0.1391, allocations: 498.3 kB / 479.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1391, allocations: 0 / 479.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1393, allocations: 35.97 kB / 479.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1393, allocations: 0 / 479.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1393, allocations: 4 kB / 479.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1393, allocations: 0 / 479.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.1393, allocations: 0 / 479.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005197/0.1398, allocations: 275.5 kB / 479.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.1399, allocations: 88.95 kB / 479.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.1399, allocations: 11.94 kB / 479.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.1401, allocations: 27.97 kB / 479.9 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/0.1402, allocations: 4 kB / 479.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.1402, allocations: 4 kB / 479.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.477e-05/0.1403, allocations: 113.8 kB / 480.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1403, allocations: 0 / 480.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000265/0.1406, allocations: 28 kB / 480.1 MB, free: 4.586 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.0008209/0.1414, allocations: 0.8138 MB / 480.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008705/0.1423, allocations: 191.8 kB / 481.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.1423, allocations: 4.125 kB / 481.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.1425, allocations: 75.88 kB / 481.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.1428, allocations: 15.94 kB / 481.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.1444, allocations: 0.927 MB / 482.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1447, allocations: 0.7004 MB / 482.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.531e-05/0.1448, allocations: 20.41 kB / 482.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.144e-05/0.1449, allocations: 31.42 kB / 482.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1449, allocations: 0 / 482.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01404/0.1589, allocations: 2.687 MB / 485.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.1592, allocations: 227.8 kB / 485.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.905, allocations: 0 / 485.8 MB, free: 14.94 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