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.001303/0.001303, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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: 212.2 kB / 24.53 MB, free: 4.07 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.499/1.499, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.2177/0.2177, allocations: 44.91 MB / 359.6 MB, free: 6.277 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="cs",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.002356/0.002356, allocations: 63.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3645, allocations: 65.47 MB / 0.5578 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001628/0.3662, allocations: 0.4885 MB / 0.5582 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003626/0.3698, allocations: 2.327 MB / 0.5605 GB, free: 4.961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.9e-06/0.3698, allocations: 0 / 0.5605 GB, free: 4.961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.857e-06/0.3698, allocations: 0 / 0.5605 GB, free: 4.961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.343e-06/0.3698, allocations: 0 / 0.5605 GB, free: 4.961 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.002388/0.3722, allocations: 0.6368 MB / 0.5611 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.815e-05/0.3722, allocations: 4 kB / 0.5611 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.475e-05/0.3723, allocations: 4 kB / 0.5611 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.3724, allocations: 19.92 kB / 0.5612 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.038e-05/0.3724, allocations: 7.984 kB / 0.5612 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.288e-06/0.3725, allocations: 0 / 0.5612 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.3736, allocations: 0.6788 MB / 0.5618 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.3736, allocations: 4 kB / 0.5618 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.918e-05/0.3736, allocations: 0 / 0.5618 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006424/0.3743, allocations: 443.1 kB / 0.5623 GB, free: 3.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.3743, allocations: 0 / 0.5623 GB, free: 3.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3743, allocations: 0 / 0.5623 GB, free: 3.176 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3743, allocations: 4 kB / 0.5623 GB, free: 3.172 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.0004405/0.3747, allocations: 357.5 kB / 0.5626 GB, free: 2.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.412e-05/0.3748, allocations: 8.031 kB / 0.5626 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.971e-05/0.3749, allocations: 83.47 kB / 0.5627 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.058e-05/0.3749, allocations: 106 kB / 0.5628 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.899e-05/0.375, allocations: 76.22 kB / 0.5629 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.3751, allocations: 189.8 kB / 0.5631 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.446e-05/0.3752, allocations: 154.7 kB / 0.5632 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.3753, allocations: 154.5 kB / 0.5633 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.317e-05/0.3753, allocations: 112.9 kB / 0.5635 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.507e-05/0.3754, allocations: 75.28 kB / 0.5635 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/0.3755, allocations: 154.6 kB / 0.5637 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.321e-05/0.3755, allocations: 150.6 kB / 0.5638 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.045e-05/0.3756, allocations: 150.6 kB / 0.564 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002984/0.3759, allocations: 413 kB / 0.5644 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.376, allocations: 181 kB / 0.5645 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.967e-05/0.376, allocations: 80.14 kB / 0.5646 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.3761, allocations: 75.28 kB / 0.5647 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.958e-05/0.3762, allocations: 139.5 kB / 0.5648 GB, free: 424 kB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.31e-07/0.3762, allocations: 0 / 0.5648 GB, free: 424 kB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.337e-05/0.3762, allocations: 29.64 kB / 0.5648 GB, free: 388 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.3763, allocations: 156.4 kB / 0.565 GB, free: 212 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.354e-05/0.3764, allocations: 89.86 kB / 0.5651 GB, free: 112 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.3764, allocations: 33.64 kB / 0.5651 GB, free: 72 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.32e-05/0.3765, allocations: 80.14 kB / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-06/0.3765, allocations: 0 / 0.5652 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.3765, allocations: 17.72 kB / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3766, allocations: 310.8 kB / 0.5655 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.29e-06/0.3766, allocations: 0 / 0.5655 GB, free: 15.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.151e-05/0.3767, allocations: 7.984 kB / 0.5655 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.631e-05/0.3767, allocations: 75.28 kB / 0.5656 GB, free: 15.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.551e-05/0.3767, allocations: 75.28 kB / 0.5656 GB, free: 15.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.25e-05/0.3768, allocations: 37.7 kB / 0.5657 GB, free: 15.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.106e-05/0.3769, allocations: 79.28 kB / 0.5658 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/0.3769, allocations: 83.25 kB / 0.5658 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.913e-05/0.377, allocations: 154.6 kB / 0.566 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.23e-05/0.377, allocations: 79.28 kB / 0.5661 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.455e-05/0.3771, allocations: 158.5 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.699e-05/0.3772, allocations: 83.33 kB / 0.5663 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.3772, allocations: 79.22 kB / 0.5664 GB, free: 14.75 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.0001406/0.3773, allocations: 264.3 kB / 0.5666 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.726e-05/0.3774, allocations: 105 kB / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.754e-05/0.3775, allocations: 115.7 kB / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.034e-05/0.3776, allocations: 180.2 kB / 0.567 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.238e-05/0.3776, allocations: 180.3 kB / 0.5672 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.281e-05/0.3777, allocations: 184.2 kB / 0.5673 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.378, allocations: 368.2 kB / 0.5677 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.583e-05/0.378, allocations: 116.9 kB / 0.5678 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.264e-05/0.3781, allocations: 101 kB / 0.5679 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.147e-05/0.3781, allocations: 176.3 kB / 0.5681 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.3782, allocations: 188.1 kB / 0.5683 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.009e-05/0.3783, allocations: 184.3 kB / 0.5684 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.208e-05/0.3784, allocations: 180.2 kB / 0.5686 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000176/0.3786, allocations: 307.8 kB / 0.5689 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.967e-05/0.3786, allocations: 108.9 kB / 0.569 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3787, allocations: 188.2 kB / 0.5692 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/0.3788, allocations: 116.8 kB / 0.5693 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-05/0.3789, allocations: 176.3 kB / 0.5695 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.675e-05/0.379, allocations: 105 kB / 0.5696 GB, free: 11.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.132e-05/0.379, allocations: 75.28 kB / 0.5696 GB, free: 11.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.379, allocations: 0 / 0.5696 GB, free: 11.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005509/0.3796, allocations: 143.5 kB / 0.5698 GB, free: 11.06 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.001419/0.381, allocations: 1.041 MB / 0.5708 GB, free: 9.992 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.181e-05/0.381, allocations: 4 kB / 0.5708 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.381, allocations: 0 / 0.5708 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-06/0.381, allocations: 3.938 kB / 0.5708 GB, free: 9.984 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004923/0.3815, allocations: 458.5 kB / 0.5712 GB, free: 9.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004797/0.382, allocations: 246.1 kB / 0.5715 GB, free: 9.254 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.3823, allocations: 0.6729 MB / 0.5721 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.191e-06/0.3823, allocations: 0 / 0.5721 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.3823, allocations: 7.438 kB / 0.5721 GB, free: 8.547 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3823, allocations: 0 / 0.5721 GB, free: 8.547 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02789/0.4102, allocations: 4.324 MB / 0.5763 GB, free: 4.367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.62, allocations: 8 kB / 0.5764 GB, free: 4.359 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.508705177984666]