Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001212, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001367, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 73.59 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1138, allocations: 62.44 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0017/0.1155, allocations: 491.7 kB / 480.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.1188, allocations: 2.283 MB / 482.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.678e-06/0.1188, allocations: 3.938 kB / 482.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.547e-06/0.1188, allocations: 0 / 482.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.122e-06/0.1188, allocations: 0 / 482.9 MB, free: 2.422 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.002091/0.1209, allocations: 0.6193 MB / 483.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.874e-05/0.121, allocations: 7.938 kB / 483.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.099e-05/0.121, allocations: 0 / 483.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.1212, allocations: 27.91 kB / 483.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.053e-05/0.1212, allocations: 4 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-06/0.1212, allocations: 0 / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009977/0.1222, allocations: 0.6164 MB / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.683e-06/0.1222, allocations: 0 / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.1222, allocations: 7.984 kB / 484.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006568/0.1229, allocations: 431.4 kB / 484.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1229, allocations: 0 / 484.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1229, allocations: 4 kB / 484.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1229, allocations: 0 / 484.6 MB, free: 0.7148 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.0003829/0.1233, allocations: 425.2 kB / 485 MB, free: 252 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1234, allocations: 8.031 kB / 485 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.001e-05/0.1234, allocations: 110 kB / 485.1 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.033e-05/0.1235, allocations: 76.22 kB / 485.2 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.1236, allocations: 243.6 kB / 485.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.1237, allocations: 154.9 kB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.1237, allocations: 154.5 kB / 485.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.9e-05/0.1238, allocations: 113 kB / 485.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.1238, allocations: 75.28 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.599e-05/0.1239, allocations: 150.6 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-05/0.1239, allocations: 150.6 kB / 486.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.897e-05/0.124, allocations: 158.5 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002561/0.1242, allocations: 438 kB / 486.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.729e-05/0.1243, allocations: 177.1 kB / 487 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.132e-05/0.1244, allocations: 80.14 kB / 487 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.1244, allocations: 79.28 kB / 487.1 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.039e-05/0.1245, allocations: 135.5 kB / 487.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.91e-07/0.1245, allocations: 0 / 487.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.249e-05/0.1245, allocations: 37.58 kB / 487.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.1246, allocations: 152.4 kB / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.926e-05/0.1246, allocations: 89.86 kB / 487.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.1247, allocations: 25.7 kB / 487.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.757e-05/0.1247, allocations: 88.14 kB / 487.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.392e-06/0.1247, allocations: 0 / 487.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.1247, allocations: 13.72 kB / 487.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.1248, allocations: 314.8 kB / 488 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.438e-06/0.1248, allocations: 3.938 kB / 488 MB, free: 13.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.458e-05/0.1249, allocations: 3.984 kB / 488 MB, free: 13.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.438e-05/0.1249, allocations: 75.28 kB / 488 MB, free: 13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.573e-05/0.1249, allocations: 79.31 kB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.713e-05/0.125, allocations: 37.58 kB / 488.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.125, allocations: 79.28 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/0.1251, allocations: 79.28 kB / 488.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.099e-05/0.1251, allocations: 150.6 kB / 488.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.246e-05/0.1251, allocations: 79.22 kB / 488.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.755e-05/0.1252, allocations: 158.5 kB / 488.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.393e-05/0.1253, allocations: 87.22 kB / 488.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.1253, allocations: 75.28 kB / 488.9 MB, free: 12.18 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.1254, allocations: 260.4 kB / 489.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.007e-05/0.1255, allocations: 112.9 kB / 489.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.19e-05/0.1256, allocations: 108.1 kB / 489.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-05/0.1256, allocations: 184.2 kB / 489.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001053/0.1257, allocations: 184.2 kB / 489.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001202/0.1259, allocations: 176.3 kB / 489.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.1261, allocations: 405.1 kB / 490.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-05/0.1262, allocations: 109 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.1262, allocations: 105 kB / 490.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-05/0.1263, allocations: 184.2 kB / 490.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.908e-05/0.1264, allocations: 176.3 kB / 490.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.388e-05/0.1264, allocations: 184.2 kB / 491 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-05/0.1265, allocations: 180.2 kB / 491.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.1267, allocations: 311.7 kB / 491.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.142e-05/0.1267, allocations: 178.1 kB / 491.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.534e-05/0.1268, allocations: 188.2 kB / 491.8 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.687e-05/0.1269, allocations: 105 kB / 491.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.126e-05/0.127, allocations: 180.3 kB / 492.1 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.127, allocations: 108.9 kB / 492.2 MB, free: 8.598 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.873e-05/0.1271, allocations: 79.28 kB / 492.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1271, allocations: 0 / 492.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005636/0.1277, allocations: 132 kB / 492.4 MB, free: 8.391 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001161/0.1288, allocations: 1.05 MB / 493.5 MB, free: 7.324 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.643e-05/0.1289, allocations: 11.95 kB / 493.5 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1289, allocations: 0 / 493.5 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.924e-06/0.1289, allocations: 0 / 493.5 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.1293, allocations: 465.9 kB / 493.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004336/0.1297, allocations: 237.8 kB / 494.2 MB, free: 6.582 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.1299, allocations: 0.669 MB / 494.8 MB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.851e-06/0.13, allocations: 3.938 kB / 494.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.254e-05/0.13, allocations: 7.438 kB / 494.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.13, allocations: 0 / 494.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.1542, allocations: 4.034 MB / 498.9 MB, free: 1.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.927/8.081, allocations: 1.375 kB / 498.9 MB, free: 1.887 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches