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.00173/0.00173, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002087/0.002087, allocations: 209.4 kB / 23.74 MB, free: 4.66 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.2284/0.2284, allocations: 44.91 MB / 358.8 MB, free: 6.297 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="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: 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.002116/0.002116, allocations: 60.19 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3131, allocations: 65.49 MB / 0.557 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001527/0.3146, allocations: 0.489 MB / 0.5575 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.3183, allocations: 2.316 MB / 0.5598 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.45e-06/0.3183, allocations: 0 / 0.5598 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.168e-06/0.3183, allocations: 4 kB / 0.5598 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.032e-06/0.3183, allocations: 0 / 0.5598 GB, free: 4.98 MB / 398.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.002231/0.3205, allocations: 0.6324 MB / 0.5604 GB, free: 4.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.547e-05/0.3205, allocations: 4 kB / 0.5604 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.696e-05/0.3206, allocations: 4 kB / 0.5604 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.3207, allocations: 15.92 kB / 0.5604 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.633e-05/0.3207, allocations: 11.98 kB / 0.5604 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.968e-06/0.3207, allocations: 0 / 0.5604 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.3219, allocations: 0.6749 MB / 0.5611 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.542e-06/0.3219, allocations: 0 / 0.5611 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.3219, allocations: 4 kB / 0.5611 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006762/0.3226, allocations: 451.1 kB / 0.5615 GB, free: 3.195 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3226, allocations: 0 / 0.5615 GB, free: 3.195 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3226, allocations: 7.938 kB / 0.5615 GB, free: 3.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.3226, allocations: 0 / 0.5615 GB, free: 3.188 MB / 398.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.0004379/0.3231, allocations: 351.3 kB / 0.5618 GB, free: 2.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3231, allocations: 8.031 kB / 0.5619 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.972e-05/0.3232, allocations: 110 kB / 0.562 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/0.3232, allocations: 76.22 kB / 0.562 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.3234, allocations: 177.8 kB / 0.5622 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.016e-05/0.3234, allocations: 154.9 kB / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.3235, allocations: 162.5 kB / 0.5625 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.543e-05/0.3236, allocations: 108.9 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/0.3236, allocations: 79.27 kB / 0.5627 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.888e-05/0.3237, allocations: 154.5 kB / 0.5628 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.97e-05/0.3238, allocations: 150.6 kB / 0.563 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.146e-05/0.3238, allocations: 154.6 kB / 0.5631 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002915/0.3241, allocations: 413 kB / 0.5635 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001068/0.3242, allocations: 177 kB / 0.5637 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.622e-05/0.3243, allocations: 80.14 kB / 0.5638 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.3243, allocations: 79.28 kB / 0.5638 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.338e-05/0.3244, allocations: 139.5 kB / 0.564 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.3244, allocations: 3.938 kB / 0.564 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.04e-05/0.3245, allocations: 25.7 kB / 0.564 GB, free: 488 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.614e-05/0.3245, allocations: 156.4 kB / 0.5641 GB, free: 312 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.114e-05/0.3246, allocations: 89.86 kB / 0.5642 GB, free: 212 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.3246, allocations: 29.7 kB / 0.5643 GB, free: 176 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.085e-05/0.3247, allocations: 88.14 kB / 0.5643 GB, free: 84 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.3247, allocations: 0 / 0.5643 GB, free: 84 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.3247, allocations: 13.72 kB / 0.5644 GB, free: 64 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3248, allocations: 310.8 kB / 0.5647 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.978e-06/0.3249, allocations: 3.938 kB / 0.5647 GB, free: 15.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.3249, allocations: 4 kB / 0.5647 GB, free: 15.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.384e-05/0.3249, allocations: 75.28 kB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-05/0.3249, allocations: 75.28 kB / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.783e-05/0.325, allocations: 37.72 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.26e-05/0.3251, allocations: 85.62 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.773e-05/0.3251, allocations: 83.23 kB / 0.565 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.986e-05/0.3252, allocations: 150.6 kB / 0.5651 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.255e-05/0.3252, allocations: 79.28 kB / 0.5652 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.131e-05/0.3253, allocations: 158.5 kB / 0.5654 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.054e-05/0.3254, allocations: 79.28 kB / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.3254, allocations: 83.27 kB / 0.5655 GB, free: 14.84 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.0001456/0.3255, allocations: 264.4 kB / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.898e-05/0.3256, allocations: 104.9 kB / 0.5659 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.876e-05/0.3257, allocations: 115.8 kB / 0.566 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-05/0.3257, allocations: 180.2 kB / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.98e-05/0.3258, allocations: 180.3 kB / 0.5663 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.332e-05/0.3259, allocations: 184.2 kB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/0.3262, allocations: 372.2 kB / 0.5669 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.592e-05/0.3262, allocations: 105 kB / 0.567 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.307e-05/0.3262, allocations: 104.9 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.5e-05/0.3263, allocations: 188.2 kB / 0.5672 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.327e-05/0.3264, allocations: 180.2 kB / 0.5674 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.768e-05/0.3265, allocations: 176.3 kB / 0.5676 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-05/0.3266, allocations: 176.3 kB / 0.5678 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.3267, allocations: 315.7 kB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.138e-05/0.3268, allocations: 112.9 kB / 0.5682 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.149e-05/0.3269, allocations: 184.2 kB / 0.5683 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.035e-05/0.327, allocations: 109 kB / 0.5684 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.947e-05/0.3271, allocations: 180.2 kB / 0.5686 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.349e-05/0.3271, allocations: 105 kB / 0.5687 GB, free: 11.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.551e-05/0.3271, allocations: 79.28 kB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3271, allocations: 3.938 kB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005491/0.3277, allocations: 135.6 kB / 0.5689 GB, free: 11.16 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.001139/0.3288, allocations: 1.048 MB / 0.5699 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.176e-05/0.3289, allocations: 0 / 0.5699 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3289, allocations: 4 kB / 0.5699 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.3289, allocations: 0 / 0.5699 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.3293, allocations: 463.6 kB / 0.5704 GB, free: 9.629 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004322/0.3297, allocations: 242.1 kB / 0.5706 GB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.33, allocations: 0.6729 MB / 0.5713 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.421e-06/0.33, allocations: 0 / 0.5713 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.34e-05/0.3301, allocations: 7.438 kB / 0.5713 GB, free: 8.645 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3301, allocations: 0 / 0.5713 GB, free: 8.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03163/0.3617, allocations: 4.3 MB / 0.5755 GB, free: 4.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.93, allocations: 7.938 kB / 0.5755 GB, free: 4.469 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.842357774963602]