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.001346/0.001346, allocations: 114 kB / 20.44 MB, free: 1.469 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.001414/0.001414, allocations: 211.4 kB / 23.74 MB, free: 4.695 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.574/1.574, allocations: 230.5 MB / 257.4 MB, free: 8.027 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.2509/0.2509, allocations: 46.92 MB / 360.8 MB, free: 4.215 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.002331/0.002331, allocations: 79.88 kB / 0.4962 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3556, allocations: 66.08 MB / 0.5607 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001527/0.3571, allocations: 491.6 kB / 0.5612 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003552/0.3607, allocations: 2.323 MB / 0.5635 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.759e-06/0.3607, allocations: 4 kB / 0.5635 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.088e-06/0.3607, allocations: 0 / 0.5635 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.152e-06/0.3607, allocations: 0 / 0.5635 GB, free: 1.496 MB / 398.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.002269/0.363, allocations: 0.6391 MB / 0.5641 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.717e-05/0.363, allocations: 11.98 kB / 0.5641 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.807e-05/0.363, allocations: 0 / 0.5641 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.3632, allocations: 12 kB / 0.5641 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.074e-05/0.3632, allocations: 11.97 kB / 0.5641 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-06/0.3632, allocations: 0 / 0.5641 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001157/0.3644, allocations: 0.6749 MB / 0.5648 GB, free: 156 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.422e-06/0.3644, allocations: 0 / 0.5648 GB, free: 156 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.159e-05/0.3644, allocations: 4 kB / 0.5648 GB, free: 152 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006623/0.3651, allocations: 451 kB / 0.5652 GB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3651, allocations: 0 / 0.5652 GB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3651, allocations: 0 / 0.5652 GB, free: 15.71 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3651, allocations: 0 / 0.5652 GB, free: 15.71 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.0004515/0.3655, allocations: 363.2 kB / 0.5656 GB, free: 15.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3656, allocations: 12.03 kB / 0.5656 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.3657, allocations: 110 kB / 0.5657 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.164e-05/0.3658, allocations: 76.22 kB / 0.5657 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.3659, allocations: 185.8 kB / 0.5659 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.567e-05/0.366, allocations: 154.9 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.3661, allocations: 158.4 kB / 0.5662 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.786e-05/0.3661, allocations: 101 kB / 0.5663 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.631e-05/0.3662, allocations: 75.28 kB / 0.5664 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.3663, allocations: 150.6 kB / 0.5665 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.364e-05/0.3664, allocations: 154.6 kB / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.478e-05/0.3665, allocations: 154.6 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003007/0.3668, allocations: 417 kB / 0.5672 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.665e-05/0.3669, allocations: 173 kB / 0.5674 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.08e-05/0.3669, allocations: 88.14 kB / 0.5675 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.3669, allocations: 75.28 kB / 0.5675 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001213/0.3671, allocations: 139.5 kB / 0.5677 GB, free: 13.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.3671, allocations: 0 / 0.5677 GB, free: 13.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.815e-05/0.3671, allocations: 29.64 kB / 0.5677 GB, free: 12.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.3673, allocations: 152.4 kB / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.835e-05/0.3673, allocations: 93.86 kB / 0.5679 GB, free: 12.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.3673, allocations: 29.7 kB / 0.568 GB, free: 12.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.3674, allocations: 80.14 kB / 0.568 GB, free: 12.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-06/0.3674, allocations: 0 / 0.568 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.3674, allocations: 17.7 kB / 0.5681 GB, free: 12.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3675, allocations: 314.8 kB / 0.5684 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.11e-06/0.3675, allocations: 0 / 0.5684 GB, free: 12.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.307e-05/0.3676, allocations: 4 kB / 0.5684 GB, free: 12.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.732e-05/0.3676, allocations: 79.31 kB / 0.5684 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-05/0.3676, allocations: 75.28 kB / 0.5685 GB, free: 12.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.893e-05/0.3677, allocations: 33.7 kB / 0.5685 GB, free: 12.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.3677, allocations: 79.28 kB / 0.5686 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.035e-05/0.3678, allocations: 87.22 kB / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.431e-05/0.3679, allocations: 150.6 kB / 0.5688 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.753e-05/0.3679, allocations: 83.22 kB / 0.5689 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.147e-05/0.368, allocations: 158.5 kB / 0.5691 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.392e-05/0.3681, allocations: 75.28 kB / 0.5692 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.3681, allocations: 87.27 kB / 0.5692 GB, free: 11.35 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.0001571/0.3683, allocations: 261.7 kB / 0.5695 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-05/0.3683, allocations: 108.9 kB / 0.5696 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.3684, allocations: 115.7 kB / 0.5697 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.991e-05/0.3685, allocations: 180.3 kB / 0.5699 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-05/0.3686, allocations: 184.2 kB / 0.57 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.279e-05/0.3686, allocations: 180.2 kB / 0.5702 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.3689, allocations: 376.2 kB / 0.5706 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.145e-05/0.3689, allocations: 104.9 kB / 0.5707 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.866e-05/0.369, allocations: 105 kB / 0.5708 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.041e-05/0.3691, allocations: 188.2 kB / 0.571 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.423e-05/0.3692, allocations: 176.3 kB / 0.5711 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001193/0.3693, allocations: 180.2 kB / 0.5713 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.849e-05/0.3694, allocations: 180.2 kB / 0.5715 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.3696, allocations: 311.7 kB / 0.5718 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.3697, allocations: 117 kB / 0.5719 GB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.713e-05/0.3698, allocations: 176.3 kB / 0.572 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.3699, allocations: 108.9 kB / 0.5721 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.347e-05/0.37, allocations: 176.3 kB / 0.5723 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.37, allocations: 112.9 kB / 0.5724 GB, free: 7.883 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.811e-05/0.3701, allocations: 75.28 kB / 0.5725 GB, free: 7.809 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3701, allocations: 0 / 0.5725 GB, free: 7.809 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007239/0.3708, allocations: 139.6 kB / 0.5726 GB, free: 7.672 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.001512/0.3723, allocations: 1.037 MB / 0.5736 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.639e-05/0.3724, allocations: 0 / 0.5736 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3724, allocations: 3.938 kB / 0.5736 GB, free: 6.605 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.293e-06/0.3724, allocations: 4 kB / 0.5736 GB, free: 6.602 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.3728, allocations: 459.7 kB / 0.5741 GB, free: 6.148 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004585/0.3732, allocations: 242.1 kB / 0.5743 GB, free: 5.871 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.3737, allocations: 0.669 MB / 0.575 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.484e-06/0.3737, allocations: 0 / 0.575 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.599e-05/0.3737, allocations: 7.438 kB / 0.575 GB, free: 5.168 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3737, allocations: 0 / 0.575 GB, free: 5.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.4059, allocations: 4.303 MB / 0.5792 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.25, allocations: 8 kB / 0.5792 GB, free: 0.957 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.309334946003219]