Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001345/0.001345, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001598/0.001598, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2259/0.2259, allocations: 46.93 MB / 360.9 MB, free: 4.293 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 63.89 kB / 0.4961 GB, free: 7.953 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3243, allocations: 66.04 MB / 0.5606 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001625/0.326, allocations: 485.1 kB / 0.5611 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003855/0.3298, allocations: 2.331 MB / 0.5634 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.661e-06/0.3298, allocations: 0 / 0.5634 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.765e-06/0.3298, allocations: 0 / 0.5634 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.373e-06/0.3298, allocations: 0 / 0.5634 GB, free: 1.672 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.002091/0.3319, allocations: 0.6324 MB / 0.564 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.75e-05/0.332, allocations: 15.98 kB / 0.564 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.061e-05/0.332, allocations: 0 / 0.564 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.3321, allocations: 15.92 kB / 0.564 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.808e-05/0.3322, allocations: 7.984 kB / 0.564 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.088e-06/0.3322, allocations: 0 / 0.564 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.3333, allocations: 0.6788 MB / 0.5647 GB, free: 332 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-06/0.3333, allocations: 0 / 0.5647 GB, free: 332 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.816e-05/0.3333, allocations: 3.984 kB / 0.5647 GB, free: 328 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006331/0.3339, allocations: 443.2 kB / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3339, allocations: 0 / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.334, allocations: 0 / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.334, allocations: 0 / 0.5651 GB, free: 15.89 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.0004238/0.3344, allocations: 359.3 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3344, allocations: 8.031 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.801e-05/0.3345, allocations: 114 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.301e-05/0.3346, allocations: 84.22 kB / 0.5657 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.3347, allocations: 177.8 kB / 0.5658 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.3347, allocations: 150.9 kB / 0.566 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.238e-05/0.3348, allocations: 158.5 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.438e-05/0.3349, allocations: 101 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.04e-05/0.3349, allocations: 83.28 kB / 0.5663 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.358e-05/0.335, allocations: 150.6 kB / 0.5664 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.506e-05/0.3351, allocations: 150.6 kB / 0.5666 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.539e-05/0.3351, allocations: 154.5 kB / 0.5667 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002834/0.3354, allocations: 425 kB / 0.5671 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.3355, allocations: 173.1 kB / 0.5673 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.814e-05/0.3355, allocations: 80.14 kB / 0.5674 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.3356, allocations: 75.28 kB / 0.5675 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.28e-05/0.3356, allocations: 131.5 kB / 0.5676 GB, free: 13.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 3.837e-06/0.3357, allocations: 11.88 kB / 0.5676 GB, free: 13.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.856e-05/0.3357, allocations: 29.7 kB / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.793e-05/0.3358, allocations: 160.3 kB / 0.5678 GB, free: 12.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.457e-05/0.3359, allocations: 89.86 kB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.3359, allocations: 25.7 kB / 0.5679 GB, free: 12.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.3359, allocations: 80.14 kB / 0.568 GB, free: 12.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-06/0.3359, allocations: 4 kB / 0.568 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-05/0.3359, allocations: 17.7 kB / 0.568 GB, free: 12.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3361, allocations: 314.8 kB / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.629e-06/0.3361, allocations: 0 / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.031e-05/0.3361, allocations: 0 / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.525e-05/0.3362, allocations: 75.28 kB / 0.5684 GB, free: 12.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.169e-05/0.3362, allocations: 79.28 kB / 0.5684 GB, free: 12.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.78e-05/0.3362, allocations: 33.64 kB / 0.5685 GB, free: 12.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.91e-05/0.3363, allocations: 83.28 kB / 0.5685 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-05/0.3363, allocations: 83.28 kB / 0.5686 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.477e-05/0.3364, allocations: 162.5 kB / 0.5688 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.363e-05/0.3364, allocations: 75.28 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.38e-05/0.3365, allocations: 150.6 kB / 0.569 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.583e-05/0.3366, allocations: 83.22 kB / 0.5691 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.3366, allocations: 79.33 kB / 0.5691 GB, free: 11.54 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.0001563/0.3368, allocations: 268.3 kB / 0.5694 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.548e-05/0.3369, allocations: 116.8 kB / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.3369, allocations: 107.8 kB / 0.5696 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.587e-05/0.337, allocations: 180.3 kB / 0.5698 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.043e-05/0.3371, allocations: 180.2 kB / 0.57 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.617e-05/0.3371, allocations: 176.3 kB / 0.5701 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.3374, allocations: 388.2 kB / 0.5705 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.643e-05/0.3374, allocations: 101 kB / 0.5706 GB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.942e-05/0.3375, allocations: 101 kB / 0.5707 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.693e-05/0.3376, allocations: 180.2 kB / 0.5709 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.057e-05/0.3376, allocations: 184.2 kB / 0.571 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.783e-05/0.3377, allocations: 184.2 kB / 0.5712 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.907e-05/0.3378, allocations: 176.3 kB / 0.5714 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001628/0.3379, allocations: 311.7 kB / 0.5717 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.338, allocations: 113 kB / 0.5718 GB, free: 8.656 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.885e-05/0.3381, allocations: 184.2 kB / 0.572 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.627e-05/0.3382, allocations: 105 kB / 0.5721 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-05/0.3383, allocations: 188.1 kB / 0.5722 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.481e-05/0.3383, allocations: 101 kB / 0.5723 GB, free: 8.062 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.534e-05/0.3383, allocations: 75.28 kB / 0.5724 GB, free: 7.988 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3383, allocations: 0 / 0.5724 GB, free: 7.988 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005271/0.3389, allocations: 143.5 kB / 0.5725 GB, free: 7.848 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.001199/0.3401, allocations: 1.043 MB / 0.5736 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.427e-05/0.3401, allocations: 0 / 0.5736 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.3401, allocations: 4 kB / 0.5736 GB, free: 6.777 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.563e-06/0.3401, allocations: 0 / 0.5736 GB, free: 6.777 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.3405, allocations: 458.6 kB / 0.574 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004845/0.341, allocations: 242.1 kB / 0.5742 GB, free: 6.051 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3413, allocations: 0.6729 MB / 0.5749 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.552e-06/0.3413, allocations: 0 / 0.5749 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.3413, allocations: 11.44 kB / 0.5749 GB, free: 5.34 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3413, allocations: 0 / 0.5749 GB, free: 5.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03288/0.3742, allocations: 4.291 MB / 0.5791 GB, free: 1.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.35, allocations: 14.95 kB / 0.5791 GB, free: 1.168 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat","/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_4.1.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.165987191023305]