Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.00131/0.00131, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 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.001397/0.001397, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.436/1.436, allocations: 230.3 MB / 258 MB, free: 8.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2316/0.2316, allocations: 46.89 MB / 361.3 MB, free: 4.438 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 75.88 kB / 0.497 GB, free: 7.605 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.376, allocations: 66.04 MB / 0.5615 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001756/0.3777, allocations: 483.3 kB / 0.562 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007341/0.3785, allocations: 273.4 kB / 0.5622 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.621e-05/0.3785, allocations: 4 kB / 0.5622 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.3785, allocations: 0 / 0.5622 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.3785, allocations: 0 / 0.5622 GB, free: 3.844 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.3789, allocations: 51.81 kB / 0.5623 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.583e-05/0.379, allocations: 8 kB / 0.5623 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.133e-05/0.379, allocations: 0 / 0.5623 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.379, allocations: 0 / 0.5623 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.448e-05/0.3791, allocations: 0 / 0.5623 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.767e-06/0.3791, allocations: 0 / 0.5623 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.3792, allocations: 71.92 kB / 0.5624 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.698e-06/0.3792, allocations: 4 kB / 0.5624 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.992e-05/0.3793, allocations: 4 kB / 0.5624 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.3794, allocations: 47.69 kB / 0.5624 GB, free: 3.664 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3794, allocations: 0 / 0.5624 GB, free: 3.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3794, allocations: 0 / 0.5624 GB, free: 3.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.3794, allocations: 0 / 0.5624 GB, free: 3.664 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003693/0.3798, allocations: 286.7 kB / 0.5627 GB, free: 3.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3798, allocations: 12.02 kB / 0.5627 GB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.208e-05/0.3799, allocations: 0.9375 kB / 0.5627 GB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.38, allocations: 114.5 kB / 0.5628 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.38, allocations: 384 / 0.5628 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.38, allocations: 4.375 kB / 0.5628 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.3801, allocations: 34.27 kB / 0.5629 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.3801, allocations: 192 / 0.5629 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.467e-06/0.3801, allocations: 3.938 kB / 0.5629 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3801, allocations: 0 / 0.5629 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.769e-05/0.3801, allocations: 0 / 0.5629 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.3803, allocations: 124.7 kB / 0.563 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.286e-05/0.3803, allocations: 18.52 kB / 0.563 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.732e-05/0.3804, allocations: 12.84 kB / 0.563 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.3804, allocations: 0 / 0.563 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.098e-05/0.3804, allocations: 64.36 kB / 0.5631 GB, free: 2.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3804, allocations: 0 / 0.5631 GB, free: 2.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002051/0.3806, allocations: 67.33 kB / 0.5631 GB, free: 2.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.3807, allocations: 77.11 kB / 0.5632 GB, free: 2.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.679e-05/0.3808, allocations: 97.75 kB / 0.5633 GB, free: 2.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.3808, allocations: 29.83 kB / 0.5633 GB, free: 2.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.718e-05/0.3808, allocations: 80.14 kB / 0.5634 GB, free: 2.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.3809, allocations: 0 / 0.5634 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.3809, allocations: 21.66 kB / 0.5634 GB, free: 2.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.3811, allocations: 310.8 kB / 0.5637 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.3811, allocations: 0 / 0.5637 GB, free: 2.137 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.196e-05/0.3811, allocations: 7.984 kB / 0.5637 GB, free: 2.129 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.942e-05/0.3812, allocations: 60.33 kB / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3812, allocations: 0 / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.205e-05/0.3813, allocations: 63.41 kB / 0.5638 GB, free: 1.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.3813, allocations: 33.7 kB / 0.5639 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3813, allocations: 0 / 0.5639 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3813, allocations: 7.922 kB / 0.5639 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3813, allocations: 0 / 0.5639 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3813, allocations: 0 / 0.5639 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.585e-05/0.3813, allocations: 3.938 kB / 0.5639 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.3813, allocations: 0 / 0.5639 GB, free: 1.93 MB / 398.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001036/0.3814, allocations: 139.6 kB / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.3815, allocations: 0 / 0.564 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.522e-05/0.3815, allocations: 6.938 kB / 0.564 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3815, allocations: 0 / 0.564 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3815, allocations: 4 kB / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.3815, allocations: 0 / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001045/0.3816, allocations: 120.8 kB / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.3816, allocations: 0 / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.986e-06/0.3816, allocations: 4 kB / 0.5642 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.3816, allocations: 0 / 0.5642 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.3816, allocations: 11.94 kB / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.3816, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3816, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.3817, allocations: 90.83 kB / 0.5643 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-06/0.3817, allocations: 0 / 0.5643 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.3817, allocations: 3.938 kB / 0.5643 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-06/0.3817, allocations: 3.938 kB / 0.5643 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.907e-05/0.3817, allocations: 11.97 kB / 0.5643 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.3817, allocations: 3.938 kB / 0.5643 GB, free: 1.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.377e-05/0.3818, allocations: 75.28 kB / 0.5643 GB, free: 1.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3818, allocations: 0 / 0.5643 GB, free: 1.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.382, allocations: 27.92 kB / 0.5644 GB, free: 1.352 MB / 398.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000709/0.3827, allocations: 264.1 kB / 0.5646 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.3828, allocations: 55.41 kB / 0.5647 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3828, allocations: 0 / 0.5647 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.098e-05/0.3829, allocations: 63.45 kB / 0.5647 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.383, allocations: 8 kB / 0.5647 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002118/0.3832, allocations: 77 kB / 0.5648 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.3836, allocations: 0.6729 MB / 0.5655 GB, free: 192 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.3836, allocations: 0 / 0.5655 GB, free: 192 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.476e-05/0.3836, allocations: 11.38 kB / 0.5655 GB, free: 180 kB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3836, allocations: 0 / 0.5655 GB, free: 180 kB / 398.1 MB Notification: Performance of Templates: time 0.003978/0.3876, allocations: 0.804 MB / 0.5663 GB, free: 15.38 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.1152894869446754]