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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 116.4 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 208.9 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2895/0.2895, allocations: 46.9 MB / 357.4 MB, free: 10.48 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 79.88 kB / 0.4912 GB, free: 8.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1457, allocations: 65.99 MB / 0.5557 GB, free: 6.371 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001749/0.1475, allocations: 493 kB / 0.5561 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003816/0.1513, allocations: 2.306 MB / 0.5584 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.404e-06/0.1513, allocations: 0 / 0.5584 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.176e-05/0.1513, allocations: 4 kB / 0.5584 GB, free: 3.555 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.403e-06/0.1513, allocations: 0 / 0.5584 GB, free: 3.555 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.002416/0.1537, allocations: 0.631 MB / 0.559 GB, free: 2.926 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.544e-05/0.1538, allocations: 11.98 kB / 0.559 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.235e-05/0.1538, allocations: 0 / 0.559 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.154, allocations: 11.94 kB / 0.559 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.91e-05/0.154, allocations: 7.984 kB / 0.559 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.358e-06/0.154, allocations: 0 / 0.559 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.155, allocations: 0.6749 MB / 0.5597 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.752e-06/0.155, allocations: 0 / 0.5597 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.528e-05/0.155, allocations: 8 kB / 0.5597 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006516/0.1557, allocations: 447 kB / 0.5601 GB, free: 1.773 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1557, allocations: 0 / 0.5601 GB, free: 1.773 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1557, allocations: 0 / 0.5601 GB, free: 1.773 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1557, allocations: 0 / 0.5601 GB, free: 1.773 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.0004933/0.1562, allocations: 432.4 kB / 0.5605 GB, free: 1.297 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1562, allocations: 8.031 kB / 0.5606 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.556e-05/0.1563, allocations: 106 kB / 0.5607 GB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.959e-05/0.1564, allocations: 84.22 kB / 0.5607 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.1565, allocations: 239.6 kB / 0.561 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.591e-05/0.1566, allocations: 154.9 kB / 0.5611 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-05/0.1567, allocations: 154.5 kB / 0.5613 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.07e-05/0.1568, allocations: 101 kB / 0.5614 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.1568, allocations: 75.28 kB / 0.5614 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.581e-05/0.1569, allocations: 158.6 kB / 0.5616 GB, free: 184 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-05/0.157, allocations: 154.6 kB / 0.5617 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.164e-05/0.157, allocations: 154.5 kB / 0.5619 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000361/0.1574, allocations: 449.9 kB / 0.5623 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.1575, allocations: 177 kB / 0.5625 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.315e-05/0.1576, allocations: 84.08 kB / 0.5626 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.172e-05/0.1576, allocations: 79.28 kB / 0.5626 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.578e-05/0.1577, allocations: 135.5 kB / 0.5628 GB, free: 14.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1577, allocations: 0 / 0.5628 GB, free: 14.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 8.786e-05/0.1578, allocations: 29.64 kB / 0.5628 GB, free: 14.86 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.1579, allocations: 160.4 kB / 0.5629 GB, free: 14.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.33e-05/0.1579, allocations: 93.86 kB / 0.563 GB, free: 14.58 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.158, allocations: 29.69 kB / 0.5631 GB, free: 14.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.158, allocations: 80.14 kB / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-06/0.158, allocations: 0 / 0.5631 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/0.158, allocations: 13.72 kB / 0.5631 GB, free: 14.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1582, allocations: 310.8 kB / 0.5634 GB, free: 14.13 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.639e-06/0.1582, allocations: 0 / 0.5634 GB, free: 14.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.143e-05/0.1582, allocations: 8 kB / 0.5635 GB, free: 14.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.064e-05/0.1582, allocations: 75.28 kB / 0.5635 GB, free: 14.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.253e-05/0.1583, allocations: 75.28 kB / 0.5636 GB, free: 13.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.909e-05/0.1583, allocations: 37.58 kB / 0.5636 GB, free: 13.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.557e-05/0.1584, allocations: 83.27 kB / 0.5637 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-05/0.1584, allocations: 75.28 kB / 0.5638 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.067e-05/0.1585, allocations: 154.6 kB / 0.5639 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.77e-05/0.1585, allocations: 87.25 kB / 0.564 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.177e-05/0.1586, allocations: 150.6 kB / 0.5642 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.164e-05/0.1587, allocations: 79.22 kB / 0.5642 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.1587, allocations: 79.28 kB / 0.5643 GB, free: 13.23 MB / 430.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.0001434/0.1588, allocations: 256.4 kB / 0.5646 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/0.1589, allocations: 120.8 kB / 0.5647 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.308e-05/0.159, allocations: 111.9 kB / 0.5648 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.088e-05/0.1591, allocations: 176.3 kB / 0.5649 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.224e-05/0.1591, allocations: 184.2 kB / 0.5651 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.723e-05/0.1592, allocations: 180.3 kB / 0.5653 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.1595, allocations: 413.1 kB / 0.5657 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.936e-05/0.1595, allocations: 105 kB / 0.5658 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.415e-05/0.1596, allocations: 101 kB / 0.5659 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-05/0.1597, allocations: 184.2 kB / 0.5661 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.221e-05/0.1598, allocations: 180.2 kB / 0.5662 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.094e-05/0.1598, allocations: 180.2 kB / 0.5664 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.325e-05/0.1599, allocations: 184.2 kB / 0.5666 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000175/0.1601, allocations: 315.7 kB / 0.5669 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.854e-05/0.1602, allocations: 178.1 kB / 0.567 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.547e-05/0.1603, allocations: 180.2 kB / 0.5672 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.871e-05/0.1604, allocations: 109 kB / 0.5673 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.923e-05/0.1604, allocations: 184.2 kB / 0.5675 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.1605, allocations: 108.9 kB / 0.5676 GB, free: 9.633 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.102e-05/0.1605, allocations: 75.28 kB / 0.5677 GB, free: 9.559 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1605, allocations: 0 / 0.5677 GB, free: 9.559 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005787/0.1611, allocations: 135.6 kB / 0.5678 GB, free: 9.426 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.001225/0.1623, allocations: 1.059 MB / 0.5688 GB, free: 8.352 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.626e-05/0.1624, allocations: 11.95 kB / 0.5688 GB, free: 8.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.1624, allocations: 4 kB / 0.5689 GB, free: 8.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.724e-06/0.1624, allocations: 0 / 0.5689 GB, free: 8.336 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.1628, allocations: 464.9 kB / 0.5693 GB, free: 7.879 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004512/0.1632, allocations: 241.6 kB / 0.5695 GB, free: 7.602 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.1635, allocations: 0.6729 MB / 0.5702 GB, free: 6.902 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.662e-06/0.1635, allocations: 0 / 0.5702 GB, free: 6.902 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.591e-05/0.1635, allocations: 15.44 kB / 0.5702 GB, free: 6.887 MB / 430.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1635, allocations: 0 / 0.5702 GB, free: 6.887 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.1921, allocations: 4.162 MB / 0.5743 GB, free: 2.781 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.221/8.414, allocations: 10.56 kB / 0.5743 GB, free: 2.773 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.471557333134115]