Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001525/0.001525, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002026/0.002026, allocations: 213.1 kB / 25.13 MB, free: 3.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 230.4 MB / 258.7 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2322/0.2322, allocations: 46.93 MB / 362 MB, free: 4.203 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002338/0.002338, allocations: 91.84 kB / 0.4978 GB, free: 7.379 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3744, allocations: 66.07 MB / 0.5623 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001701/0.3761, allocations: 0.4893 MB / 0.5628 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003642/0.3798, allocations: 2.319 MB / 0.565 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.719e-06/0.3798, allocations: 0 / 0.565 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.348e-06/0.3798, allocations: 0 / 0.565 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.492e-06/0.3798, allocations: 0 / 0.565 GB, free: 1.453 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.002078/0.3818, allocations: 0.6367 MB / 0.5657 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.928e-05/0.3819, allocations: 12 kB / 0.5657 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.624e-05/0.3819, allocations: 0 / 0.5657 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.382, allocations: 15.94 kB / 0.5657 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.816e-05/0.3821, allocations: 11.97 kB / 0.5657 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.709e-06/0.3821, allocations: 0 / 0.5657 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.3831, allocations: 0.6555 MB / 0.5663 GB, free: 132 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.3831, allocations: 7.984 kB / 0.5664 GB, free: 124 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.3832, allocations: 4 kB / 0.5664 GB, free: 120 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.3839, allocations: 450.9 kB / 0.5668 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3839, allocations: 0 / 0.5668 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3839, allocations: 3.938 kB / 0.5668 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.3839, allocations: 0 / 0.5668 GB, free: 15.67 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.0004746/0.3844, allocations: 351.3 kB / 0.5671 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3844, allocations: 8.031 kB / 0.5671 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.529e-05/0.3845, allocations: 80.22 kB / 0.5672 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.3846, allocations: 181.8 kB / 0.5674 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.913e-05/0.3847, allocations: 154.9 kB / 0.5675 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.222e-05/0.3848, allocations: 154.7 kB / 0.5677 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.3849, allocations: 101 kB / 0.5678 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.437e-05/0.3849, allocations: 83.12 kB / 0.5679 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-05/0.385, allocations: 154.6 kB / 0.568 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-05/0.3851, allocations: 154.6 kB / 0.5682 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.211e-05/0.3852, allocations: 150.6 kB / 0.5683 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003306/0.3855, allocations: 413 kB / 0.5687 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.3856, allocations: 177.1 kB / 0.5689 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.734e-05/0.3857, allocations: 84.08 kB / 0.5689 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.3857, allocations: 79.28 kB / 0.569 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.65e-05/0.3858, allocations: 135.5 kB / 0.5691 GB, free: 13.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.031e-06/0.3858, allocations: 0 / 0.5691 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.012e-05/0.3859, allocations: 33.64 kB / 0.5692 GB, free: 13.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.386, allocations: 152.4 kB / 0.5693 GB, free: 12.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.523e-05/0.386, allocations: 89.86 kB / 0.5694 GB, free: 12.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.3861, allocations: 29.7 kB / 0.5694 GB, free: 12.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.229e-05/0.3861, allocations: 84.14 kB / 0.5695 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.3861, allocations: 0 / 0.5695 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.3862, allocations: 13.72 kB / 0.5695 GB, free: 12.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3863, allocations: 314.8 kB / 0.5698 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.65e-06/0.3863, allocations: 3.938 kB / 0.5698 GB, free: 12.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.07e-05/0.3864, allocations: 29.69 kB / 0.5699 GB, free: 12.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.423e-05/0.3864, allocations: 75.28 kB / 0.5699 GB, free: 12.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.654e-05/0.3864, allocations: 79.31 kB / 0.57 GB, free: 12.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.808e-05/0.3865, allocations: 33.7 kB / 0.57 GB, free: 12.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.3865, allocations: 79.28 kB / 0.5701 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.901e-05/0.3866, allocations: 87.23 kB / 0.5702 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.17e-05/0.3867, allocations: 154.6 kB / 0.5703 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.227e-05/0.3867, allocations: 75.28 kB / 0.5704 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.987e-05/0.3868, allocations: 162.5 kB / 0.5706 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.289e-05/0.3869, allocations: 83.28 kB / 0.5707 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.3869, allocations: 83.27 kB / 0.5707 GB, free: 11.41 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.0001479/0.3871, allocations: 261.3 kB / 0.571 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.849e-05/0.3871, allocations: 104.9 kB / 0.5711 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.599e-05/0.3872, allocations: 111.8 kB / 0.5712 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.819e-05/0.3873, allocations: 188.2 kB / 0.5714 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.852e-05/0.3874, allocations: 180.3 kB / 0.5715 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.373e-05/0.3875, allocations: 184.2 kB / 0.5717 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.3877, allocations: 364.3 kB / 0.5721 GB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-05/0.3878, allocations: 116.9 kB / 0.5722 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.629e-05/0.3878, allocations: 104.9 kB / 0.5723 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.377e-05/0.3879, allocations: 180.3 kB / 0.5724 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.952e-05/0.388, allocations: 180.2 kB / 0.5726 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.75e-05/0.3881, allocations: 180.3 kB / 0.5728 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.189e-05/0.3882, allocations: 176.3 kB / 0.573 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.3883, allocations: 311.8 kB / 0.5733 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.3884, allocations: 108.9 kB / 0.5734 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.73e-05/0.3885, allocations: 184.3 kB / 0.5735 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.3886, allocations: 112.8 kB / 0.5736 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-05/0.3887, allocations: 184.2 kB / 0.5738 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.3887, allocations: 105 kB / 0.5739 GB, free: 7.949 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.186e-05/0.3888, allocations: 79.28 kB / 0.574 GB, free: 7.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3888, allocations: 0 / 0.574 GB, free: 7.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005108/0.3893, allocations: 139.6 kB / 0.5741 GB, free: 7.734 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.0008277/0.3901, allocations: 406.7 kB / 0.5745 GB, free: 7.332 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.57e-05/0.3902, allocations: 7.938 kB / 0.5745 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.3902, allocations: 0 / 0.5745 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.3902, allocations: 0 / 0.5745 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.3906, allocations: 459.6 kB / 0.575 GB, free: 6.871 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001663/0.3908, allocations: 152.3 kB / 0.5751 GB, free: 6.695 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.3911, allocations: 0.669 MB / 0.5758 GB, free: 6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.3911, allocations: 4 kB / 0.5758 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.37e-05/0.3911, allocations: 11.44 kB / 0.5758 GB, free: 5.984 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3911, allocations: 0 / 0.5758 GB, free: 5.984 MB / 414.1 MB Notification: Performance of Templates: time 0.007669/0.3988, allocations: 3.28 MB / 0.579 GB, free: 2.711 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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: 5.109367971075699]