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.001511/0.001511, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001468/0.001468, allocations: 216.6 kB / 23.73 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2529/0.2529, allocations: 46.96 MB / 360.9 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 179] 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.001961/0.001961, allocations: 68.06 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3472, allocations: 66.04 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001612/0.3488, allocations: 489.1 kB / 0.5611 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003404/0.3522, allocations: 2.171 MB / 0.5632 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.531e-06/0.3522, allocations: 0 / 0.5632 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.418e-06/0.3522, allocations: 0 / 0.5632 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.403e-06/0.3522, allocations: 0 / 0.5632 GB, free: 1.574 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.002336/0.3545, allocations: 0.6396 MB / 0.5638 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.822e-05/0.3546, allocations: 8 kB / 0.5638 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.685e-05/0.3546, allocations: 4 kB / 0.5638 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.3547, allocations: 23.84 kB / 0.5638 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.589e-05/0.3547, allocations: 8 kB / 0.5638 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.58e-06/0.3548, allocations: 0 / 0.5638 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.3558, allocations: 0.6398 MB / 0.5645 GB, free: 264 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.55e-06/0.3558, allocations: 0 / 0.5645 GB, free: 264 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.871e-05/0.3559, allocations: 4 kB / 0.5645 GB, free: 260 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006465/0.3565, allocations: 443.2 kB / 0.5649 GB, free: 15.82 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3565, allocations: 4 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3565, allocations: 0 / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3565, allocations: 0 / 0.5649 GB, free: 15.81 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.0003997/0.3569, allocations: 359.3 kB / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.357, allocations: 8.031 kB / 0.5652 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.873e-05/0.357, allocations: 106 kB / 0.5653 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.85e-05/0.3571, allocations: 84.2 kB / 0.5654 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.3572, allocations: 181.8 kB / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.288e-05/0.3573, allocations: 150.9 kB / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-05/0.3573, allocations: 158.5 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.374e-05/0.3574, allocations: 112.9 kB / 0.566 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.3575, allocations: 75.28 kB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.433e-05/0.3575, allocations: 150.6 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.846e-05/0.3576, allocations: 150.6 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.572e-05/0.3577, allocations: 154.6 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003143/0.358, allocations: 413 kB / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.3581, allocations: 181 kB / 0.5671 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.931e-05/0.3581, allocations: 80.14 kB / 0.5671 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.3582, allocations: 75.28 kB / 0.5672 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.36e-05/0.3583, allocations: 139.5 kB / 0.5674 GB, free: 13.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.3583, allocations: 0 / 0.5674 GB, free: 13.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.098e-05/0.3583, allocations: 29.7 kB / 0.5674 GB, free: 13.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.3584, allocations: 152.4 kB / 0.5675 GB, free: 12.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.652e-05/0.3585, allocations: 93.86 kB / 0.5676 GB, free: 12.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.3585, allocations: 29.7 kB / 0.5676 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.527e-05/0.3585, allocations: 80.14 kB / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.192e-06/0.3585, allocations: 0 / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.3586, allocations: 17.66 kB / 0.5677 GB, free: 12.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3587, allocations: 314.8 kB / 0.568 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.79e-06/0.3587, allocations: 0 / 0.568 GB, free: 12.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.004e-05/0.3588, allocations: 29.7 kB / 0.5681 GB, free: 12.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.357e-05/0.3588, allocations: 79.25 kB / 0.5681 GB, free: 12.26 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.819e-05/0.3588, allocations: 79.28 kB / 0.5682 GB, free: 12.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.722e-05/0.3589, allocations: 37.7 kB / 0.5683 GB, free: 12.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.281e-05/0.3589, allocations: 79.28 kB / 0.5683 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-05/0.359, allocations: 79.22 kB / 0.5684 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.408e-05/0.3591, allocations: 158.6 kB / 0.5686 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.404e-05/0.3591, allocations: 79.27 kB / 0.5686 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.972e-05/0.3592, allocations: 154.5 kB / 0.5688 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.3593, allocations: 79.28 kB / 0.5689 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.3593, allocations: 83.27 kB / 0.5689 GB, free: 11.43 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.0001524/0.3595, allocations: 264.4 kB / 0.5692 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.971e-05/0.3596, allocations: 108.9 kB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.354e-05/0.3596, allocations: 115.8 kB / 0.5694 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.55e-05/0.3597, allocations: 180.2 kB / 0.5696 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.784e-05/0.3598, allocations: 176.3 kB / 0.5697 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.839e-05/0.3599, allocations: 184.2 kB / 0.5699 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.3601, allocations: 380.2 kB / 0.5703 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.97e-05/0.3602, allocations: 105 kB / 0.5704 GB, free: 9.848 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.3602, allocations: 108.9 kB / 0.5705 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.427e-05/0.3603, allocations: 176.3 kB / 0.5707 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.906e-05/0.3604, allocations: 184.2 kB / 0.5708 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.546e-05/0.3605, allocations: 180.3 kB / 0.571 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-05/0.3606, allocations: 184.2 kB / 0.5712 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.3608, allocations: 307.8 kB / 0.5715 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.3608, allocations: 108.9 kB / 0.5716 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3609, allocations: 188.2 kB / 0.5718 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.361, allocations: 104.9 kB / 0.5719 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.371e-05/0.3611, allocations: 180.3 kB / 0.572 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.3611, allocations: 101 kB / 0.5721 GB, free: 7.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.589e-05/0.3612, allocations: 75.28 kB / 0.5722 GB, free: 7.895 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3612, allocations: 0 / 0.5722 GB, free: 7.895 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00053/0.3617, allocations: 139.6 kB / 0.5723 GB, free: 7.758 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.001163/0.3629, allocations: 1.047 MB / 0.5733 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.578e-05/0.3629, allocations: 4 kB / 0.5734 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3629, allocations: 0 / 0.5734 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.252e-06/0.3629, allocations: 0 / 0.5734 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.3633, allocations: 463.6 kB / 0.5738 GB, free: 6.227 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004329/0.3638, allocations: 242.1 kB / 0.574 GB, free: 5.949 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.671e-05/0.3638, allocations: 59.3 kB / 0.5741 GB, free: 5.871 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.3638, allocations: 0 / 0.5741 GB, free: 5.871 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.625e-05/0.3638, allocations: 7.438 kB / 0.5741 GB, free: 5.863 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3638, allocations: 0 / 0.5741 GB, free: 5.863 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3972, allocations: 4.716 MB / 0.5787 GB, free: 1.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.73, allocations: 0 / 0.5787 GB, free: 1.281 MB / 414.1 MB " [Timeout remaining time 648] (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.68288263771683]