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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2203/0.2203, allocations: 44.91 MB / 349.6 MB, free: 1.746 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 66.58 kB / 491.8 MB, free: 29.96 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1128, allocations: 64.26 MB / 0.543 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001573/0.1143, allocations: 495.9 kB / 0.5435 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.1176, allocations: 2.207 MB / 0.5456 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.349e-06/0.1176, allocations: 0 / 0.5456 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.196e-06/0.1176, allocations: 0 / 0.5456 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.473e-06/0.1176, allocations: 4 kB / 0.5456 GB, free: 1.426 MB / 398.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.001999/0.1196, allocations: 0.6152 MB / 0.5462 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.478e-05/0.1196, allocations: 8 kB / 0.5462 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.51e-05/0.1196, allocations: 4 kB / 0.5462 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.671e-05/0.1197, allocations: 11.97 kB / 0.5462 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.268e-05/0.1197, allocations: 7.938 kB / 0.5463 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-06/0.1197, allocations: 0 / 0.5463 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009872/0.1207, allocations: 0.6398 MB / 0.5469 GB, free: 144 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.1207, allocations: 3.984 kB / 0.5469 GB, free: 140 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.716e-05/0.1208, allocations: 0 / 0.5469 GB, free: 140 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000617/0.1214, allocations: 435.1 kB / 0.5473 GB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1214, allocations: 4 kB / 0.5473 GB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1214, allocations: 0 / 0.5473 GB, free: 15.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1214, allocations: 0 / 0.5473 GB, free: 15.7 MB / 414.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.000421/0.1218, allocations: 420.5 kB / 0.5477 GB, free: 15.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1219, allocations: 16.03 kB / 0.5477 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.952e-05/0.1219, allocations: 110 kB / 0.5478 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.165e-05/0.122, allocations: 76.22 kB / 0.5479 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.1221, allocations: 239.7 kB / 0.5481 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.1222, allocations: 154.9 kB / 0.5483 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.1223, allocations: 162.3 kB / 0.5484 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.156e-05/0.1223, allocations: 105 kB / 0.5485 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.161e-05/0.1224, allocations: 75.28 kB / 0.5486 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.336e-05/0.1224, allocations: 150.6 kB / 0.5487 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.147e-05/0.1225, allocations: 150.6 kB / 0.5489 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.726e-05/0.1226, allocations: 150.6 kB / 0.549 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003137/0.1229, allocations: 450 kB / 0.5495 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.251e-05/0.123, allocations: 173 kB / 0.5496 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.317e-05/0.123, allocations: 80.14 kB / 0.5497 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.1231, allocations: 79.27 kB / 0.5498 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.065e-05/0.1232, allocations: 143.5 kB / 0.5499 GB, free: 12.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.1232, allocations: 0 / 0.5499 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.331e-05/0.1232, allocations: 29.64 kB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.1233, allocations: 152.4 kB / 0.5501 GB, free: 12.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.386e-05/0.1234, allocations: 89.86 kB / 0.5502 GB, free: 12.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.1234, allocations: 25.7 kB / 0.5502 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.03e-05/0.1234, allocations: 84.14 kB / 0.5503 GB, free: 12.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-06/0.1234, allocations: 0 / 0.5503 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/0.1235, allocations: 13.72 kB / 0.5503 GB, free: 12.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1236, allocations: 318.8 kB / 0.5506 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.508e-06/0.1236, allocations: 0 / 0.5506 GB, free: 12.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.086e-05/0.1236, allocations: 4.031 kB / 0.5506 GB, free: 12.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.253e-05/0.1237, allocations: 83.22 kB / 0.5507 GB, free: 11.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.029e-05/0.1237, allocations: 75.33 kB / 0.5507 GB, free: 11.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.891e-05/0.1238, allocations: 37.64 kB / 0.5508 GB, free: 11.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/0.1238, allocations: 87.22 kB / 0.5509 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-05/0.1238, allocations: 79.31 kB / 0.5509 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.729e-05/0.1239, allocations: 150.6 kB / 0.5511 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.13e-05/0.1239, allocations: 79.22 kB / 0.5512 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-05/0.124, allocations: 158.5 kB / 0.5513 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.985e-05/0.1241, allocations: 79.22 kB / 0.5514 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.1241, allocations: 79.27 kB / 0.5515 GB, free: 11.17 MB / 414.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.0001424/0.1243, allocations: 268.4 kB / 0.5517 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.1243, allocations: 104.9 kB / 0.5518 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.178e-05/0.1244, allocations: 112 kB / 0.5519 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.279e-05/0.1245, allocations: 180.2 kB / 0.5521 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.292e-05/0.1246, allocations: 184.1 kB / 0.5523 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.053e-05/0.1246, allocations: 184.3 kB / 0.5524 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.1249, allocations: 409.2 kB / 0.5528 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.493e-05/0.125, allocations: 104.9 kB / 0.5529 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.915e-05/0.125, allocations: 101 kB / 0.553 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.059e-05/0.1251, allocations: 180.2 kB / 0.5532 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.458e-05/0.1252, allocations: 184.3 kB / 0.5534 GB, free: 9.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.146e-05/0.1253, allocations: 184.3 kB / 0.5536 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.043e-05/0.1253, allocations: 184.2 kB / 0.5537 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001628/0.1255, allocations: 303.7 kB / 0.554 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.377e-05/0.1256, allocations: 186.1 kB / 0.5542 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.433e-05/0.1257, allocations: 184.2 kB / 0.5544 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.1258, allocations: 104.9 kB / 0.5545 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.744e-05/0.1259, allocations: 180.3 kB / 0.5546 GB, free: 7.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/0.1259, allocations: 104.9 kB / 0.5547 GB, free: 7.578 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.17e-05/0.126, allocations: 75.28 kB / 0.5548 GB, free: 7.504 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.126, allocations: 0 / 0.5548 GB, free: 7.504 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005083/0.1265, allocations: 135.7 kB / 0.5549 GB, free: 7.371 MB / 414.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.001135/0.1276, allocations: 1.049 MB / 0.556 GB, free: 6.309 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.636e-05/0.1276, allocations: 7.938 kB / 0.556 GB, free: 6.301 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1277, allocations: 0 / 0.556 GB, free: 6.301 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.352e-06/0.1277, allocations: 3.938 kB / 0.556 GB, free: 6.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003957/0.128, allocations: 459.7 kB / 0.5564 GB, free: 5.844 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004209/0.1285, allocations: 233.7 kB / 0.5566 GB, free: 5.574 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.1288, allocations: 0.6766 MB / 0.5573 GB, free: 4.871 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.751e-06/0.1288, allocations: 0 / 0.5573 GB, free: 4.871 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.248e-05/0.1288, allocations: 7.438 kB / 0.5573 GB, free: 4.863 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1288, allocations: 0 / 0.5573 GB, free: 4.863 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0257/0.1545, allocations: 3.969 MB / 0.5612 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.311/8.465, allocations: 12 kB / 0.5612 GB, free: 0.957 MB / 414.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.25405589491129]