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.0008514/0.0008513, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.0009067/0.0009068, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.316/1.316, allocations: 223.3 MB / 242.3 MB, free: 216 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.2175/0.2175, allocations: 44.24 MB / 337.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002797, allocations: 9.312 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 61.92 MB / 472.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005049/0.109, allocations: 214.9 kB / 472.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003251/0.1123, allocations: 2.26 MB / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.967e-06/0.1123, allocations: 0 / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.038e-06/0.1123, allocations: 0 / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.21e-07/0.1123, allocations: 0 / 474.8 MB, free: 10.79 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.002/0.1143, allocations: 0.518 MB / 475.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.519e-05/0.1144, allocations: 8 kB / 475.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.513e-05/0.1144, allocations: 7.969 kB / 475.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.558e-05/0.1145, allocations: 7.938 kB / 475.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.612e-05/0.1146, allocations: 8 kB / 475.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-06/0.1146, allocations: 0 / 475.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001254/0.1158, allocations: 0.5891 MB / 476 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-06/0.1158, allocations: 0 / 476 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.531e-05/0.1159, allocations: 37.69 kB / 476 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006371/0.1165, allocations: 435.3 kB / 476.4 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1166, allocations: 0 / 476.4 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1166, allocations: 0 / 476.4 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.1166, allocations: 0 / 476.4 MB, free: 9.184 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.0003948/0.117, allocations: 419.5 kB / 476.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.117, allocations: 8.031 kB / 476.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.024e-05/0.1171, allocations: 110 kB / 476.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.721e-05/0.1171, allocations: 84.22 kB / 477 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.615e-05/0.1172, allocations: 239.7 kB / 477.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.1173, allocations: 150.9 kB / 477.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.1173, allocations: 154.5 kB / 477.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.377e-05/0.1174, allocations: 101 kB / 477.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.1174, allocations: 79.22 kB / 477.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.32e-05/0.1175, allocations: 158.6 kB / 477.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.918e-05/0.1175, allocations: 150.6 kB / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.752e-05/0.1176, allocations: 154.6 kB / 478.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002447/0.1179, allocations: 441.9 kB / 478.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.527e-05/0.1179, allocations: 177.1 kB / 478.8 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.217e-05/0.118, allocations: 84.08 kB / 478.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.118, allocations: 83.27 kB / 479 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.869e-05/0.1181, allocations: 131.5 kB / 479.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.1181, allocations: 0 / 479.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.721e-05/0.1182, allocations: 25.7 kB / 479.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.1182, allocations: 160.4 kB / 479.3 MB, free: 6.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.608e-05/0.1183, allocations: 89.86 kB / 479.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.1183, allocations: 29.64 kB / 479.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.1183, allocations: 80.14 kB / 479.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.194e-06/0.1184, allocations: 0 / 479.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.1184, allocations: 9.719 kB / 479.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1185, allocations: 314.8 kB / 479.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.68e-06/0.1185, allocations: 0 / 479.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.282e-05/0.1186, allocations: 3.938 kB / 479.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.234e-05/0.1186, allocations: 79.31 kB / 479.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.721e-05/0.1187, allocations: 83.27 kB / 479.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.523e-05/0.1187, allocations: 33.64 kB / 480 MB, free: 5.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.1188, allocations: 81.78 kB / 480.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/0.1188, allocations: 75.28 kB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.835e-05/0.1189, allocations: 158.5 kB / 480.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.003e-05/0.1189, allocations: 75.28 kB / 480.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-05/0.1189, allocations: 158.5 kB / 480.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/0.119, allocations: 83.33 kB / 480.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.119, allocations: 79.42 kB / 480.7 MB, free: 4.668 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.1191, allocations: 264.3 kB / 480.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.1192, allocations: 116.9 kB / 481 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.1193, allocations: 108.1 kB / 481.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-05/0.1193, allocations: 180.2 kB / 481.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.976e-05/0.1194, allocations: 184.2 kB / 481.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.943e-05/0.1195, allocations: 184.2 kB / 481.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.1197, allocations: 397.2 kB / 482.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.87e-05/0.1197, allocations: 109 kB / 482.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.308e-05/0.1197, allocations: 108.9 kB / 482.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.509e-05/0.1198, allocations: 176.3 kB / 482.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.236e-05/0.1199, allocations: 184.1 kB / 482.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.138e-05/0.1199, allocations: 184.3 kB / 482.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-05/0.12, allocations: 176.3 kB / 483 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.1201, allocations: 315.7 kB / 483.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.1203, allocations: 186 kB / 483.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.1203, allocations: 180.3 kB / 483.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.1204, allocations: 101 kB / 483.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.1205, allocations: 192.2 kB / 483.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.1205, allocations: 101 kB / 484 MB, free: 1.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.46e-05/0.1205, allocations: 79.28 kB / 484.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1205, allocations: 0 / 484.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005638/0.1211, allocations: 128 kB / 484.2 MB, free: 0.8672 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 (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.001044/0.1222, allocations: 1.045 MB / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.629e-05/0.1222, allocations: 0 / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1222, allocations: 0 / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.1222, allocations: 4 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.1225, allocations: 0.5218 MB / 485.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.1229, allocations: 239.5 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.1231, allocations: 0.6692 MB / 486.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.632e-06/0.1231, allocations: 0 / 486.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.205e-05/0.1232, allocations: 11.44 kB / 486.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1232, allocations: 0 / 486.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.1396, allocations: 3.729 MB / 490.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002596/0.1398, allocations: 233 kB / 490.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/1.94, allocations: 3.938 kB / 490.7 MB, free: 10.39 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/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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat","/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_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches