Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.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.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",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.0009807/0.0009809, allocations: 97.88 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.0009676/0.0009677, allocations: 181.9 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.351/1.351, allocations: 223.3 MB / 241.9 MB, free: 304 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.2195/0.2195, allocations: 44.23 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003319, allocations: 12 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1117, allocations: 61.93 MB / 471.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.000448/0.1122, allocations: 210.9 kB / 471.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002578/0.1148, allocations: 2.077 MB / 473.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.819e-06/0.1148, allocations: 0 / 473.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.422e-06/0.1148, allocations: 3.938 kB / 473.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.282e-06/0.1148, allocations: 3.938 kB / 473.9 MB, free: 11.34 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:8:5-85:27:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.quadratureLobatto1‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:87:5-157:27:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.quadratureLobatto2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:159:5-233:33:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:235:5-313:33:writable] Warning: Pure function ‘Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.1166, allocations: 0.5142 MB / 474.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.101e-05/0.1167, allocations: 11.98 kB / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.016e-05/0.1167, allocations: 3.984 kB / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.989e-05/0.1168, allocations: 4 kB / 474.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.174e-05/0.1168, allocations: 4 kB / 474.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.739e-06/0.1169, allocations: 0 / 474.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008569/0.1177, allocations: 0.5656 MB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-06/0.1177, allocations: 3.984 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.1178, allocations: 29.7 kB / 475.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.1181, allocations: 291.6 kB / 475.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1182, allocations: 0 / 475.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1182, allocations: 0 / 475.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1182, allocations: 0 / 475.4 MB, free: 9.914 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003054/0.1185, allocations: 421 kB / 475.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1185, allocations: 8.031 kB / 475.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.1186, allocations: 105.8 kB / 475.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.1186, allocations: 79.28 kB / 476 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.683e-05/0.1187, allocations: 238.4 kB / 476.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.1188, allocations: 150.6 kB / 476.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.509e-05/0.1188, allocations: 158.5 kB / 476.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.942e-05/0.1189, allocations: 104.9 kB / 476.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.1189, allocations: 75.28 kB / 476.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.983e-05/0.119, allocations: 158.6 kB / 476.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.985e-05/0.119, allocations: 150.6 kB / 477 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.22e-05/0.1191, allocations: 154.6 kB / 477.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002122/0.1193, allocations: 438 kB / 477.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.988e-05/0.1194, allocations: 173.1 kB / 477.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.526e-05/0.1194, allocations: 84.14 kB / 477.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.1194, allocations: 83.22 kB / 477.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.1195, allocations: 135.5 kB / 478 MB, free: 7.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.152e-06/0.1195, allocations: 0 / 478 MB, free: 7.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.352e-05/0.1196, allocations: 29.69 kB / 478 MB, free: 7.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.1196, allocations: 160.4 kB / 478.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.161e-05/0.1197, allocations: 89.86 kB / 478.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1197, allocations: 25.7 kB / 478.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.396e-05/0.1197, allocations: 80.14 kB / 478.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-06/0.1197, allocations: 0 / 478.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-07/0.1197, allocations: 0 / 478.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.843e-05/0.1198, allocations: 310.8 kB / 478.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.887e-06/0.1198, allocations: 3.938 kB / 478.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.602e-05/0.1199, allocations: 4 kB / 478.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.919e-05/0.1199, allocations: 83.25 kB / 478.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-05/0.1199, allocations: 75.28 kB / 478.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.398e-05/0.12, allocations: 37.69 kB / 478.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.12, allocations: 79.28 kB / 479 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.1201, allocations: 83.17 kB / 479.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.818e-05/0.1201, allocations: 154.6 kB / 479.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.526e-05/0.1202, allocations: 75.28 kB / 479.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.604e-05/0.1202, allocations: 158.5 kB / 479.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.705e-05/0.1203, allocations: 83.33 kB / 479.5 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.1203, allocations: 83.38 kB / 479.6 MB, free: 5.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (0): * Single equations (assignments): 0 * 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.0001261/0.1205, allocations: 264.9 kB / 479.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.1205, allocations: 109 kB / 480 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.244e-05/0.1206, allocations: 108.1 kB / 480.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.224e-05/0.1206, allocations: 184.2 kB / 480.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.989e-05/0.1207, allocations: 180.3 kB / 480.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.448e-05/0.1208, allocations: 184.2 kB / 480.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001885/0.121, allocations: 397.2 kB / 481 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.167e-05/0.121, allocations: 101 kB / 481.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.059e-05/0.1211, allocations: 112.9 kB / 481.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.173e-05/0.1211, allocations: 180.2 kB / 481.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.543e-05/0.1212, allocations: 180.2 kB / 481.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.922e-05/0.1212, allocations: 180.3 kB / 481.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.251e-05/0.1213, allocations: 188.2 kB / 481.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.1214, allocations: 307.8 kB / 482.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.986e-05/0.1215, allocations: 190 kB / 482.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.1216, allocations: 176.3 kB / 482.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.552e-05/0.1217, allocations: 108.9 kB / 482.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.1217, allocations: 184.2 kB / 482.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.1218, allocations: 105 kB / 483 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.074e-05/0.1218, allocations: 79.22 kB / 483 MB, free: 1.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1218, allocations: 0 / 483 MB, free: 1.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005001/0.1223, allocations: 132 kB / 483.2 MB, free: 1.613 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 (0): * Single equations (assignments): 0 * 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.0009025/0.1232, allocations: 1.042 MB / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.493e-05/0.1233, allocations: 0 / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1233, allocations: 0 / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.272e-06/0.1233, allocations: 4 kB / 484.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.1236, allocations: 0.5224 MB / 484.7 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003655/0.124, allocations: 239.6 kB / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.1242, allocations: 0.6692 MB / 485.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.55e-06/0.1242, allocations: 0 / 485.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.1242, allocations: 7.438 kB / 485.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1242, allocations: 4 kB / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01467/0.1389, allocations: 3.758 MB / 489.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.1391, allocations: 207.8 kB / 489.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.055, allocations: 3.984 kB / 489.6 MB, free: 11.15 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat does not exist to compare? outputFormat=mat