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.001279/0.001279, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001356/0.001356, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.94 MB / 361.6 MB, free: 4.281 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.001887/0.001887, allocations: 71.89 kB / 0.4969 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3363, allocations: 66.03 MB / 0.5614 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001586/0.3378, allocations: 495.6 kB / 0.5619 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.3413, allocations: 2.323 MB / 0.5641 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.478e-06/0.3413, allocations: 0 / 0.5641 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.998e-06/0.3413, allocations: 3.938 kB / 0.5641 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.3413, allocations: 0 / 0.5641 GB, free: 1.633 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.002214/0.3436, allocations: 0.6363 MB / 0.5648 GB, free: 1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.743e-05/0.3436, allocations: 4 kB / 0.5648 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.3436, allocations: 4 kB / 0.5648 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.3438, allocations: 23.91 kB / 0.5648 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.264e-05/0.3439, allocations: 8 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-06/0.3439, allocations: 0 / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00123/0.3451, allocations: 0.6788 MB / 0.5655 GB, free: 288 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.254e-06/0.3451, allocations: 0 / 0.5655 GB, free: 288 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.304e-05/0.3451, allocations: 0 / 0.5655 GB, free: 288 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006488/0.3458, allocations: 439.2 kB / 0.5659 GB, free: 15.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3458, allocations: 0 / 0.5659 GB, free: 15.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3458, allocations: 8 kB / 0.5659 GB, free: 15.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3458, allocations: 0 / 0.5659 GB, free: 15.84 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.0004362/0.3462, allocations: 361.5 kB / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3463, allocations: 8.031 kB / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.867e-05/0.3463, allocations: 79.47 kB / 0.5663 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.832e-05/0.3464, allocations: 106 kB / 0.5664 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.167e-05/0.3464, allocations: 80.22 kB / 0.5665 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.3466, allocations: 185.8 kB / 0.5667 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.437e-05/0.3466, allocations: 154.7 kB / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.3467, allocations: 150.6 kB / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.579e-05/0.3468, allocations: 101 kB / 0.5671 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.3468, allocations: 75.28 kB / 0.5671 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.026e-05/0.3469, allocations: 154.6 kB / 0.5673 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.179e-05/0.347, allocations: 158.5 kB / 0.5674 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.726e-05/0.347, allocations: 154.6 kB / 0.5676 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.3473, allocations: 409 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.3474, allocations: 173.1 kB / 0.5681 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.911e-05/0.3475, allocations: 88.14 kB / 0.5682 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.233e-05/0.3475, allocations: 79.22 kB / 0.5683 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.363e-05/0.3476, allocations: 135.5 kB / 0.5684 GB, free: 13.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 7.71e-07/0.3476, allocations: 0 / 0.5684 GB, free: 13.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.515e-05/0.3477, allocations: 37.58 kB / 0.5685 GB, free: 13.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.585e-05/0.3478, allocations: 152.4 kB / 0.5686 GB, free: 12.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.081e-05/0.3478, allocations: 93.86 kB / 0.5687 GB, free: 12.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3478, allocations: 25.7 kB / 0.5687 GB, free: 12.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.3479, allocations: 80.14 kB / 0.5688 GB, free: 12.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-06/0.3479, allocations: 0 / 0.5688 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.3479, allocations: 13.72 kB / 0.5688 GB, free: 12.65 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3481, allocations: 318.8 kB / 0.5691 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.439e-06/0.3481, allocations: 0 / 0.5691 GB, free: 12.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.614e-05/0.3481, allocations: 3.984 kB / 0.5691 GB, free: 12.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.505e-05/0.3481, allocations: 79.25 kB / 0.5692 GB, free: 12.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.28e-05/0.3482, allocations: 79.28 kB / 0.5693 GB, free: 12.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.3e-05/0.3482, allocations: 41.7 kB / 0.5693 GB, free: 12.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.3483, allocations: 79.28 kB / 0.5694 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.523e-05/0.3483, allocations: 79.28 kB / 0.5695 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.733e-05/0.3484, allocations: 154.5 kB / 0.5696 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.898e-05/0.3484, allocations: 75.28 kB / 0.5697 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.741e-05/0.3485, allocations: 158.5 kB / 0.5698 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.2e-05/0.3486, allocations: 91.31 kB / 0.5699 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.3486, allocations: 75.28 kB / 0.57 GB, free: 11.42 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.0001436/0.3487, allocations: 264.3 kB / 0.5702 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.796e-05/0.3488, allocations: 108.9 kB / 0.5703 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.58e-05/0.3489, allocations: 107.8 kB / 0.5704 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.04e-05/0.349, allocations: 188.2 kB / 0.5706 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.348e-05/0.349, allocations: 184.3 kB / 0.5708 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.552e-05/0.3491, allocations: 176.3 kB / 0.571 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.3494, allocations: 372.2 kB / 0.5713 GB, free: 9.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.259e-05/0.3494, allocations: 109 kB / 0.5714 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.179e-05/0.3494, allocations: 108.9 kB / 0.5715 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.63e-05/0.3495, allocations: 180.3 kB / 0.5717 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.609e-05/0.3496, allocations: 176.3 kB / 0.5719 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.797e-05/0.3497, allocations: 184.2 kB / 0.5721 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.436e-05/0.3497, allocations: 176.3 kB / 0.5722 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.3499, allocations: 315.7 kB / 0.5725 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.35, allocations: 108.9 kB / 0.5726 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.204e-05/0.3501, allocations: 180.3 kB / 0.5728 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.191e-05/0.3501, allocations: 108.9 kB / 0.5729 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.3502, allocations: 180.2 kB / 0.5731 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.3503, allocations: 113 kB / 0.5732 GB, free: 7.949 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.512e-05/0.3503, allocations: 75.28 kB / 0.5733 GB, free: 7.875 MB / 414.1 MB Notification: Performance of sort global known variables: time 4e-08/0.3503, allocations: 0 / 0.5733 GB, free: 7.875 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.3508, allocations: 139.6 kB / 0.5734 GB, free: 7.738 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.001308/0.3521, allocations: 1.047 MB / 0.5744 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.66e-05/0.3522, allocations: 0 / 0.5744 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3522, allocations: 0 / 0.5744 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.3522, allocations: 0 / 0.5744 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.3526, allocations: 463.7 kB / 0.5748 GB, free: 6.211 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004946/0.3531, allocations: 246 kB / 0.5751 GB, free: 5.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.3534, allocations: 0.669 MB / 0.5757 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.3534, allocations: 0 / 0.5757 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.3534, allocations: 7.438 kB / 0.5757 GB, free: 5.227 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3534, allocations: 0 / 0.5757 GB, free: 5.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.3779, allocations: 4.333 MB / 0.58 GB, free: 1.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.21, allocations: 15.94 kB / 0.58 GB, free: 1.027 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.044210953987204]