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.001299/0.001299, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001491/0.001491, allocations: 211.2 kB / 23.73 MB, free: 4.387 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.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.2186/0.2186, allocations: 44.94 MB / 358.8 MB, free: 6.027 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",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.002128/0.002128, allocations: 67.89 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2954, allocations: 65.47 MB / 0.557 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001557/0.297, allocations: 496.4 kB / 0.5574 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003322/0.3003, allocations: 2.179 MB / 0.5596 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.568e-06/0.3003, allocations: 0 / 0.5596 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.973e-06/0.3003, allocations: 0 / 0.5596 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.353e-06/0.3003, allocations: 0 / 0.5596 GB, free: 4.863 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.002109/0.3024, allocations: 0.6288 MB / 0.5602 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.678e-05/0.3024, allocations: 7.984 kB / 0.5602 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.535e-05/0.3025, allocations: 0 / 0.5602 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3026, allocations: 15.94 kB / 0.5602 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.478e-05/0.3026, allocations: 11.98 kB / 0.5602 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.539e-06/0.3026, allocations: 0 / 0.5602 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.3037, allocations: 0.6398 MB / 0.5608 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.877e-05/0.3037, allocations: 3.984 kB / 0.5608 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.3037, allocations: 4 kB / 0.5608 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006275/0.3043, allocations: 447 kB / 0.5613 GB, free: 3.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3043, allocations: 0 / 0.5613 GB, free: 3.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3043, allocations: 0 / 0.5613 GB, free: 3.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3043, allocations: 4 kB / 0.5613 GB, free: 3.113 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.0003914/0.3047, allocations: 351.3 kB / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3048, allocations: 12.03 kB / 0.5616 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.815e-05/0.3048, allocations: 110 kB / 0.5617 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.349e-05/0.3049, allocations: 80.22 kB / 0.5618 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.305, allocations: 177.8 kB / 0.562 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.391e-05/0.3051, allocations: 158.9 kB / 0.5621 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.263e-05/0.3052, allocations: 158.5 kB / 0.5623 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.178e-05/0.3052, allocations: 105 kB / 0.5624 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/0.3053, allocations: 75.28 kB / 0.5624 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.062e-05/0.3053, allocations: 150.6 kB / 0.5626 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.804e-05/0.3054, allocations: 154.6 kB / 0.5627 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.564e-05/0.3055, allocations: 158.5 kB / 0.5629 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002843/0.3058, allocations: 420.9 kB / 0.5633 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.3059, allocations: 173.1 kB / 0.5634 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.975e-05/0.3059, allocations: 84.14 kB / 0.5635 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.3059, allocations: 75.28 kB / 0.5636 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.86e-05/0.306, allocations: 135.5 kB / 0.5637 GB, free: 444 kB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.306, allocations: 0 / 0.5637 GB, free: 444 kB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.651e-05/0.3061, allocations: 33.62 kB / 0.5638 GB, free: 404 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/0.3062, allocations: 152.4 kB / 0.5639 GB, free: 232 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.181e-05/0.3062, allocations: 89.86 kB / 0.564 GB, free: 132 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.3062, allocations: 29.7 kB / 0.564 GB, free: 96 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.3063, allocations: 88.12 kB / 0.5641 GB, free: 4 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.513e-06/0.3063, allocations: 0 / 0.5641 GB, free: 4 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.219e-05/0.3063, allocations: 13.72 kB / 0.5641 GB, free: 15.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3065, allocations: 314.8 kB / 0.5644 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.178e-06/0.3065, allocations: 0 / 0.5644 GB, free: 15.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.453e-05/0.3065, allocations: 29.7 kB / 0.5644 GB, free: 15.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.088e-05/0.3066, allocations: 79.27 kB / 0.5645 GB, free: 15.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-05/0.3066, allocations: 75.28 kB / 0.5646 GB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.195e-05/0.3067, allocations: 37.7 kB / 0.5646 GB, free: 15.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.3067, allocations: 83.22 kB / 0.5647 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.298e-05/0.3068, allocations: 75.28 kB / 0.5648 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.409e-05/0.3068, allocations: 158.6 kB / 0.5649 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-05/0.3069, allocations: 79.22 kB / 0.565 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.891e-05/0.3069, allocations: 150.6 kB / 0.5651 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.534e-05/0.307, allocations: 87.22 kB / 0.5652 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.3071, allocations: 83.31 kB / 0.5653 GB, free: 14.73 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.0001331/0.3072, allocations: 260.4 kB / 0.5656 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.3073, allocations: 104.9 kB / 0.5657 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.628e-05/0.3073, allocations: 115.7 kB / 0.5658 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.801e-05/0.3074, allocations: 176.3 kB / 0.5659 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.529e-05/0.3075, allocations: 188.2 kB / 0.5661 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.948e-05/0.3076, allocations: 184.3 kB / 0.5663 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3078, allocations: 368.2 kB / 0.5666 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-05/0.3079, allocations: 108.9 kB / 0.5667 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.944e-05/0.3079, allocations: 105 kB / 0.5668 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.308, allocations: 188.1 kB / 0.567 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.504e-05/0.3081, allocations: 180.3 kB / 0.5672 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.283e-05/0.3082, allocations: 180.3 kB / 0.5674 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.756e-05/0.3083, allocations: 180.2 kB / 0.5675 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.3085, allocations: 315.7 kB / 0.5678 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.017e-05/0.3085, allocations: 105 kB / 0.5679 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.856e-05/0.3086, allocations: 180.3 kB / 0.5681 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/0.3087, allocations: 112.9 kB / 0.5682 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.616e-05/0.3088, allocations: 184.2 kB / 0.5684 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.936e-05/0.3089, allocations: 108.9 kB / 0.5685 GB, free: 11.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.868e-05/0.3089, allocations: 75.28 kB / 0.5686 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3089, allocations: 0 / 0.5686 GB, free: 11.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005407/0.3094, allocations: 139.6 kB / 0.5687 GB, free: 11.05 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.001127/0.3106, allocations: 1.045 MB / 0.5697 GB, free: 9.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.434e-05/0.3106, allocations: 7.938 kB / 0.5697 GB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3106, allocations: 0 / 0.5697 GB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.3106, allocations: 0 / 0.5697 GB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.311, allocations: 459.7 kB / 0.5702 GB, free: 9.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000434/0.3114, allocations: 238.1 kB / 0.5704 GB, free: 9.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.42e-05/0.3115, allocations: 55.36 kB / 0.5705 GB, free: 9.172 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.665e-06/0.3115, allocations: 4 kB / 0.5705 GB, free: 9.168 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.3115, allocations: 7.438 kB / 0.5705 GB, free: 9.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3115, allocations: 4 kB / 0.5705 GB, free: 9.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.3434, allocations: 4.716 MB / 0.5751 GB, free: 4.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.76, allocations: 11.12 kB / 0.5751 GB, free: 4.562 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.497399141080678]