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.001619/0.001619, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002029/0.002029, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.2226/0.2226, allocations: 46.97 MB / 361.7 MB, free: 4.031 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 59.89 kB / 0.4968 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3394, allocations: 66.04 MB / 0.5613 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001577/0.3409, allocations: 493.1 kB / 0.5618 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003357/0.3443, allocations: 2.164 MB / 0.5639 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.212e-06/0.3443, allocations: 3.938 kB / 0.5639 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.527e-06/0.3443, allocations: 0 / 0.5639 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.663e-06/0.3443, allocations: 3.938 kB / 0.5639 GB, free: 1.57 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.00226/0.3466, allocations: 0.6289 MB / 0.5645 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.461e-05/0.3466, allocations: 12 kB / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.605e-05/0.3467, allocations: 3.984 kB / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.3468, allocations: 23.91 kB / 0.5646 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.732e-05/0.3468, allocations: 4 kB / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.781e-06/0.3469, allocations: 0 / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001098/0.348, allocations: 0.6669 MB / 0.5652 GB, free: 244 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-06/0.348, allocations: 0 / 0.5652 GB, free: 244 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.099e-05/0.348, allocations: 4 kB / 0.5652 GB, free: 240 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006651/0.3486, allocations: 451.2 kB / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3486, allocations: 0 / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3487, allocations: 0 / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.3487, allocations: 0 / 0.5657 GB, free: 15.79 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.000461/0.3491, allocations: 359.3 kB / 0.566 GB, free: 15.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.3492, allocations: 8.031 kB / 0.566 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.163e-05/0.3492, allocations: 79.47 kB / 0.5661 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.242e-05/0.3493, allocations: 106 kB / 0.5662 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.422e-05/0.3494, allocations: 80.16 kB / 0.5663 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3495, allocations: 177.8 kB / 0.5664 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.504e-05/0.3496, allocations: 162.7 kB / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.3497, allocations: 150.6 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.761e-05/0.3498, allocations: 105 kB / 0.5668 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/0.3498, allocations: 75.28 kB / 0.5669 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-05/0.3499, allocations: 154.6 kB / 0.5671 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.232e-05/0.35, allocations: 150.6 kB / 0.5672 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.99e-05/0.35, allocations: 158.5 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003274/0.3504, allocations: 417 kB / 0.5678 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.3505, allocations: 169.1 kB / 0.5679 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.579e-05/0.3505, allocations: 80.14 kB / 0.568 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.3506, allocations: 79.28 kB / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.874e-05/0.3507, allocations: 135.5 kB / 0.5682 GB, free: 13.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 7.52e-07/0.3507, allocations: 0 / 0.5682 GB, free: 13.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.854e-05/0.3508, allocations: 29.64 kB / 0.5682 GB, free: 13.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3509, allocations: 160.3 kB / 0.5684 GB, free: 12.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.915e-05/0.3509, allocations: 101.8 kB / 0.5685 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.351, allocations: 25.7 kB / 0.5685 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.379e-05/0.351, allocations: 80.14 kB / 0.5686 GB, free: 12.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-06/0.351, allocations: 0 / 0.5686 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.128e-05/0.351, allocations: 13.72 kB / 0.5686 GB, free: 12.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3512, allocations: 314.8 kB / 0.5689 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.38e-06/0.3512, allocations: 4 kB / 0.5689 GB, free: 12.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.826e-05/0.3512, allocations: 25.7 kB / 0.5689 GB, free: 12.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.481e-05/0.3513, allocations: 75.28 kB / 0.569 GB, free: 12.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.149e-05/0.3513, allocations: 79.28 kB / 0.5691 GB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.109e-05/0.3514, allocations: 41.62 kB / 0.5691 GB, free: 12.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.3514, allocations: 83.28 kB / 0.5692 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/0.3515, allocations: 75.28 kB / 0.5693 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.712e-05/0.3515, allocations: 154.5 kB / 0.5694 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.217e-05/0.3516, allocations: 83.28 kB / 0.5695 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.276e-05/0.3516, allocations: 150.6 kB / 0.5696 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.026e-05/0.3517, allocations: 79.27 kB / 0.5697 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.3517, allocations: 87.31 kB / 0.5698 GB, free: 11.34 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.0001385/0.3519, allocations: 264.3 kB / 0.57 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/0.352, allocations: 108.9 kB / 0.5701 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.487e-05/0.352, allocations: 111.8 kB / 0.5703 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.472e-05/0.3521, allocations: 180.3 kB / 0.5704 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.522e-05/0.3522, allocations: 180.2 kB / 0.5706 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-05/0.3522, allocations: 180.2 kB / 0.5708 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.3525, allocations: 380.2 kB / 0.5711 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-05/0.3525, allocations: 101 kB / 0.5712 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/0.3526, allocations: 105 kB / 0.5713 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.655e-05/0.3526, allocations: 188.2 kB / 0.5715 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.556e-05/0.3527, allocations: 180.2 kB / 0.5717 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.451e-05/0.3528, allocations: 180.2 kB / 0.5719 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.828e-05/0.3529, allocations: 180.3 kB / 0.572 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.353, allocations: 311.7 kB / 0.5723 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.3531, allocations: 109 kB / 0.5724 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.269e-05/0.3532, allocations: 180.2 kB / 0.5726 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.071e-05/0.3532, allocations: 109 kB / 0.5727 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.864e-05/0.3533, allocations: 180.2 kB / 0.5729 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.3534, allocations: 108.9 kB / 0.573 GB, free: 7.875 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.377e-05/0.3534, allocations: 75.28 kB / 0.573 GB, free: 7.801 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3534, allocations: 4 kB / 0.5731 GB, free: 7.797 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005325/0.3539, allocations: 135.6 kB / 0.5732 GB, free: 7.664 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.001217/0.3552, allocations: 1.053 MB / 0.5742 GB, free: 6.586 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.464e-05/0.3552, allocations: 0 / 0.5742 GB, free: 6.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3552, allocations: 0 / 0.5742 GB, free: 6.586 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.3552, allocations: 4 kB / 0.5742 GB, free: 6.582 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.3556, allocations: 465.9 kB / 0.5747 GB, free: 6.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004376/0.356, allocations: 238.1 kB / 0.5749 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.612e-05/0.3561, allocations: 59.34 kB / 0.5749 GB, free: 5.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.493e-06/0.3561, allocations: 0 / 0.5749 GB, free: 5.773 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.3561, allocations: 7.438 kB / 0.5749 GB, free: 5.766 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3561, allocations: 0 / 0.5749 GB, free: 5.766 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.3797, allocations: 4.368 MB / 0.5792 GB, free: 1.539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.29, allocations: 11.44 kB / 0.5792 GB, free: 1.531 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.189738868037239]