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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 254.8 MB, free: 15.22 MB / 206.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.2217/0.2217, allocations: 44.9 MB / 355.8 MB, free: 12.32 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 65.94 kB / 0.4885 GB, free: 11.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1293, allocations: 65.41 MB / 0.5524 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001509/0.1308, allocations: 499.1 kB / 0.5529 GB, free: 9.633 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003261/0.1341, allocations: 2.302 MB / 0.5551 GB, free: 7.312 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-06/0.1341, allocations: 0 / 0.5551 GB, free: 7.312 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.817e-06/0.1341, allocations: 4 kB / 0.5551 GB, free: 7.309 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.082e-06/0.1341, allocations: 0 / 0.5551 GB, free: 7.309 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Nonlinear.mo:8:5-88: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.1.0+maint.om/Math/Nonlinear.mo:90:5-160: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.1.0+maint.om/Math/Nonlinear.mo:162:5-239: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.1.0+maint.om/Math/Nonlinear.mo:241:5-319: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.002051/0.1361, allocations: 0.6459 MB / 0.5558 GB, free: 6.668 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.611e-05/0.1362, allocations: 4 kB / 0.5558 GB, free: 6.664 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.474e-05/0.1362, allocations: 0 / 0.5558 GB, free: 6.664 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.1363, allocations: 23.91 kB / 0.5558 GB, free: 6.641 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.998e-05/0.1364, allocations: 4 kB / 0.5558 GB, free: 6.637 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.358e-06/0.1364, allocations: 4 kB / 0.5558 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.1374, allocations: 0.6671 MB / 0.5565 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-06/0.1374, allocations: 0 / 0.5565 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.625e-05/0.1374, allocations: 8 kB / 0.5565 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005816/0.138, allocations: 443.1 kB / 0.5569 GB, free: 5.523 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.138, allocations: 0 / 0.5569 GB, free: 5.523 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.138, allocations: 0 / 0.5569 GB, free: 5.523 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.138, allocations: 0 / 0.5569 GB, free: 5.523 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.0004457/0.1384, allocations: 440.3 kB / 0.5573 GB, free: 5.039 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1385, allocations: 8.031 kB / 0.5573 GB, free: 5.031 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.327e-05/0.1385, allocations: 75.47 kB / 0.5574 GB, free: 4.957 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.135e-05/0.1386, allocations: 106 kB / 0.5575 GB, free: 4.844 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.694e-05/0.1386, allocations: 88.16 kB / 0.5576 GB, free: 4.758 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.1388, allocations: 239.7 kB / 0.5578 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-05/0.1388, allocations: 158.7 kB / 0.558 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.286e-05/0.1389, allocations: 150.6 kB / 0.5581 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.084e-05/0.139, allocations: 101 kB / 0.5582 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.558e-05/0.139, allocations: 79.28 kB / 0.5583 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/0.1391, allocations: 154.6 kB / 0.5584 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-05/0.1392, allocations: 154.6 kB / 0.5586 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.82e-05/0.1392, allocations: 162.5 kB / 0.5587 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002956/0.1395, allocations: 438 kB / 0.5591 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.1396, allocations: 177.1 kB / 0.5593 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.141e-05/0.1397, allocations: 84.14 kB / 0.5594 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.1397, allocations: 79.28 kB / 0.5595 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.247e-05/0.1398, allocations: 135.5 kB / 0.5596 GB, free: 2.559 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 7.81e-07/0.1398, allocations: 0 / 0.5596 GB, free: 2.559 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.47e-05/0.1399, allocations: 29.64 kB / 0.5596 GB, free: 2.523 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.1399, allocations: 160.3 kB / 0.5598 GB, free: 2.348 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.041e-05/0.14, allocations: 89.86 kB / 0.5599 GB, free: 2.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.14, allocations: 25.7 kB / 0.5599 GB, free: 2.219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.1401, allocations: 84.14 kB / 0.56 GB, free: 2.133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-06/0.1401, allocations: 0 / 0.56 GB, free: 2.133 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.1401, allocations: 17.72 kB / 0.56 GB, free: 2.109 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1402, allocations: 310.8 kB / 0.5603 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.559e-06/0.1402, allocations: 3.938 kB / 0.5603 GB, free: 1.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.416e-05/0.1402, allocations: 7.984 kB / 0.5603 GB, free: 1.785 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.417e-05/0.1403, allocations: 75.28 kB / 0.5604 GB, free: 1.711 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.261e-05/0.1403, allocations: 75.31 kB / 0.5604 GB, free: 1.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.2e-05/0.1404, allocations: 41.58 kB / 0.5605 GB, free: 1.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.1404, allocations: 79.28 kB / 0.5605 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.559e-05/0.1405, allocations: 75.28 kB / 0.5606 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.16e-05/0.1405, allocations: 158.5 kB / 0.5608 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.321e-05/0.1406, allocations: 75.28 kB / 0.5608 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.313e-05/0.1406, allocations: 158.5 kB / 0.561 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.404e-05/0.1407, allocations: 83.22 kB / 0.5611 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.1408, allocations: 79.28 kB / 0.5611 GB, free: 0.8906 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.0001412/0.1409, allocations: 262.5 kB / 0.5614 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.399e-05/0.141, allocations: 108.9 kB / 0.5615 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.094e-05/0.141, allocations: 107.9 kB / 0.5616 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.209e-05/0.1411, allocations: 188.2 kB / 0.5618 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-05/0.1412, allocations: 184.2 kB / 0.562 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.801e-05/0.1413, allocations: 180.3 kB / 0.5621 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.1415, allocations: 401.1 kB / 0.5625 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.783e-05/0.1416, allocations: 105 kB / 0.5626 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-05/0.1416, allocations: 109 kB / 0.5627 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.541e-05/0.1417, allocations: 184.2 kB / 0.5629 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.699e-05/0.1418, allocations: 176.3 kB / 0.5631 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-05/0.1419, allocations: 180.2 kB / 0.5632 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.432e-05/0.1419, allocations: 180.3 kB / 0.5634 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.1421, allocations: 319.7 kB / 0.5637 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.109e-05/0.1422, allocations: 178.1 kB / 0.5639 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.53e-05/0.1423, allocations: 184.2 kB / 0.5641 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.123e-05/0.1423, allocations: 105 kB / 0.5642 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.95e-05/0.1424, allocations: 184.2 kB / 0.5643 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.1425, allocations: 104.9 kB / 0.5644 GB, free: 13.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.454e-05/0.1425, allocations: 79.28 kB / 0.5645 GB, free: 13.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1425, allocations: 0 / 0.5645 GB, free: 13.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005296/0.143, allocations: 135.7 kB / 0.5646 GB, free: 13.09 MB / 430.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.001162/0.1442, allocations: 1.043 MB / 0.5657 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 4.582e-05/0.1442, allocations: 7.938 kB / 0.5657 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1442, allocations: 4 kB / 0.5657 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.092e-06/0.1442, allocations: 0 / 0.5657 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.1446, allocations: 455.7 kB / 0.5661 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004243/0.145, allocations: 253.6 kB / 0.5663 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1454, allocations: 0.669 MB / 0.567 GB, free: 10.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.364e-06/0.1454, allocations: 0 / 0.567 GB, free: 10.58 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.363e-05/0.1454, allocations: 7.438 kB / 0.567 GB, free: 10.57 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1454, allocations: 0 / 0.567 GB, free: 10.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.1665, allocations: 4.232 MB / 0.5711 GB, free: 6.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.233/8.399, allocations: 0 / 0.5711 GB, free: 6.43 MB / 430.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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.340528653992806]