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.001304/0.001304, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.00133/0.00133, allocations: 194 kB / 18.12 MB, free: 5.363 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.434/1.434, allocations: 222.9 MB / 241.8 MB, free: 13.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.236/0.236, allocations: 44.16 MB / 336.1 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 58.19 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1129, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.002155/0.1151, allocations: 0.5449 MB / 469.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00392/0.1191, allocations: 2.291 MB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.441e-06/0.1191, allocations: 0 / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.399e-06/0.1191, allocations: 0 / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.563e-06/0.1192, allocations: 0 / 471.5 MB, free: 11.88 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.00229/0.1215, allocations: 0.5087 MB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.634e-05/0.1215, allocations: 12 kB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.744e-05/0.1216, allocations: 3.984 kB / 472 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.533e-05/0.1217, allocations: 11.94 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.642e-05/0.1217, allocations: 7.984 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.36e-06/0.1217, allocations: 0 / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.1228, allocations: 0.5969 MB / 472.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.1228, allocations: 0 / 472.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.299e-05/0.1229, allocations: 4 kB / 472.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008083/0.1237, allocations: 427.4 kB / 473 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1237, allocations: 4 kB / 473 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1237, allocations: 0 / 473 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1237, allocations: 0 / 473 MB, free: 10.32 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.0005273/0.1242, allocations: 425.2 kB / 473.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.1243, allocations: 8.031 kB / 473.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.421e-05/0.1244, allocations: 114 kB / 473.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.767e-05/0.1245, allocations: 80.22 kB / 473.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.1246, allocations: 235.7 kB / 473.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.519e-05/0.1247, allocations: 158.9 kB / 474 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.37e-05/0.1247, allocations: 154.5 kB / 474.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.765e-05/0.1248, allocations: 105 kB / 474.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.1248, allocations: 75.28 kB / 474.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.081e-05/0.1249, allocations: 150.6 kB / 474.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.448e-05/0.125, allocations: 162.5 kB / 474.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.492e-05/0.125, allocations: 150.6 kB / 474.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003176/0.1254, allocations: 441.9 kB / 475.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.1255, allocations: 173.1 kB / 475.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.775e-05/0.1255, allocations: 80.14 kB / 475.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.864e-05/0.1256, allocations: 87.27 kB / 475.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.463e-05/0.1257, allocations: 135.5 kB / 475.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.753e-06/0.1257, allocations: 0 / 475.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001044/0.1258, allocations: 25.7 kB / 475.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.1259, allocations: 156.4 kB / 475.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.05e-05/0.126, allocations: 89.86 kB / 476 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.126, allocations: 33.7 kB / 476 MB, free: 7.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.149e-05/0.1261, allocations: 80.14 kB / 476.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-06/0.1261, allocations: 0 / 476.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.1261, allocations: 17.7 kB / 476.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1263, allocations: 310.8 kB / 476.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.814e-06/0.1263, allocations: 4 kB / 476.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.622e-05/0.1263, allocations: 4 kB / 476.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.733e-05/0.1263, allocations: 75.28 kB / 476.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-05/0.1264, allocations: 83.25 kB / 476.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.582e-05/0.1265, allocations: 33.64 kB / 476.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.1265, allocations: 79.28 kB / 476.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.1265, allocations: 75.28 kB / 476.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.349e-05/0.1266, allocations: 158.5 kB / 476.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.19e-05/0.1267, allocations: 83.28 kB / 477 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.508e-05/0.1267, allocations: 158.5 kB / 477.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.182e-05/0.1268, allocations: 79.28 kB / 477.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.1269, allocations: 79.44 kB / 477.3 MB, free: 5.785 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.0001245/0.127, allocations: 260.3 kB / 477.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/0.1271, allocations: 116.9 kB / 477.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.1271, allocations: 112.1 kB / 477.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-05/0.1272, allocations: 184.2 kB / 477.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-05/0.1273, allocations: 176.3 kB / 478.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-05/0.1274, allocations: 180.3 kB / 478.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.1276, allocations: 405.1 kB / 478.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.598e-05/0.1277, allocations: 105 kB / 478.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.843e-05/0.1277, allocations: 108.9 kB / 478.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.768e-05/0.1278, allocations: 184.2 kB / 479.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.168e-05/0.1279, allocations: 176.3 kB / 479.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.229e-05/0.128, allocations: 184.2 kB / 479.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.178e-05/0.128, allocations: 180.3 kB / 479.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.1282, allocations: 315.7 kB / 479.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.22e-05/0.1283, allocations: 182.1 kB / 480.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.111e-05/0.1284, allocations: 180.2 kB / 480.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.61e-05/0.1285, allocations: 105 kB / 480.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.678e-05/0.1286, allocations: 184.2 kB / 480.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.1286, allocations: 101 kB / 480.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.973e-05/0.1287, allocations: 79.28 kB / 480.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1287, allocations: 0 / 480.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005625/0.1292, allocations: 132 kB / 480.8 MB, free: 1.988 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.001271/0.1305, allocations: 1.047 MB / 481.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.795e-05/0.1306, allocations: 0 / 481.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1306, allocations: 0 / 481.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.743e-06/0.1306, allocations: 0 / 481.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.131, allocations: 0.5341 MB / 482.4 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004583/0.1315, allocations: 235.5 kB / 482.7 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.1318, allocations: 0.6692 MB / 483.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.257e-06/0.1318, allocations: 0 / 483.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.476e-05/0.1318, allocations: 7.438 kB / 483.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1318, allocations: 0 / 483.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.149, allocations: 3.823 MB / 487.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/0.1493, allocations: 231.1 kB / 487.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.208, allocations: 3.938 kB / 487.4 MB, free: 11.4 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