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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002111/0.002111, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 106 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3242/0.3242, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3535, allocations: 62.01 MB / 0.5151 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001699/0.3553, allocations: 0.5429 MB / 0.5157 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005883/0.3559, allocations: 247.1 kB / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.103e-05/0.3559, allocations: 0 / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.3559, allocations: 0 / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.92e-06/0.356, allocations: 0 / 0.5159 GB, free: 37.27 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453: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.0003017/0.3563, allocations: 49.28 kB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.753e-05/0.3563, allocations: 6.781 kB / 0.516 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.202e-05/0.3564, allocations: 3.938 kB / 0.516 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.886e-05/0.3564, allocations: 0 / 0.516 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.321e-05/0.3564, allocations: 6.812 kB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.087e-06/0.3564, allocations: 0 / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.3566, allocations: 59.8 kB / 0.516 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.876e-06/0.3566, allocations: 0 / 0.516 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.334e-05/0.3566, allocations: 10.77 kB / 0.516 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.3567, allocations: 50.27 kB / 0.5161 GB, free: 37.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3567, allocations: 0 / 0.5161 GB, free: 37.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3567, allocations: 2.875 kB / 0.5161 GB, free: 37.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.3568, allocations: 4 kB / 0.5161 GB, free: 37.18 MB / 378.7 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.0002909/0.3571, allocations: 360.6 kB / 0.5164 GB, free: 36.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3571, allocations: 8.469 kB / 0.5164 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.25e-05/0.3571, allocations: 0.9375 kB / 0.5164 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.382e-05/0.3572, allocations: 163.7 kB / 0.5166 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3572, allocations: 3.188 kB / 0.5166 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.3572, allocations: 384 / 0.5166 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.003e-05/0.3573, allocations: 29.8 kB / 0.5166 GB, free: 36.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3573, allocations: 4.188 kB / 0.5166 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-06/0.3574, allocations: 3.938 kB / 0.5166 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3574, allocations: 0 / 0.5166 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.622e-05/0.3574, allocations: 3.938 kB / 0.5166 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.687e-05/0.3575, allocations: 153 kB / 0.5168 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.376e-05/0.3575, allocations: 18.58 kB / 0.5168 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.351e-05/0.3575, allocations: 8.766 kB / 0.5168 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.3576, allocations: 0 / 0.5168 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.3576, allocations: 60.27 kB / 0.5169 GB, free: 36.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3576, allocations: 0 / 0.5169 GB, free: 36.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001543/0.3578, allocations: 69.34 kB / 0.5169 GB, free: 36.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.66e-05/0.3578, allocations: 79.98 kB / 0.517 GB, free: 36.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.598e-05/0.3578, allocations: 93.86 kB / 0.5171 GB, free: 35.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-06/0.3578, allocations: 25.7 kB / 0.5171 GB, free: 35.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.869e-06/0.3578, allocations: 80.14 kB / 0.5172 GB, free: 35.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.3579, allocations: 0 / 0.5172 GB, free: 35.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.3579, allocations: 20.09 kB / 0.5172 GB, free: 35.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.518e-05/0.3579, allocations: 310.8 kB / 0.5175 GB, free: 35.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-06/0.358, allocations: 2.875 kB / 0.5175 GB, free: 35.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-06/0.358, allocations: 0 / 0.5175 GB, free: 35.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.179e-05/0.358, allocations: 63.2 kB / 0.5176 GB, free: 35.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.358, allocations: 0 / 0.5176 GB, free: 35.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.789e-05/0.3581, allocations: 67.11 kB / 0.5177 GB, free: 35.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3581, allocations: 35.55 kB / 0.5177 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3581, allocations: 3.938 kB / 0.5177 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3581, allocations: 7.875 kB / 0.5177 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3581, allocations: 0 / 0.5177 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3581, allocations: 3.984 kB / 0.5177 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.3582, allocations: 0 / 0.5177 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3582, allocations: 6.188 kB / 0.5177 GB, free: 35.34 MB / 378.7 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 5.487e-05/0.3582, allocations: 134.4 kB / 0.5178 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-06/0.3582, allocations: 0 / 0.5178 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.3583, allocations: 18.66 kB / 0.5179 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3583, allocations: 0 / 0.5179 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3583, allocations: 0 / 0.5179 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3583, allocations: 0 / 0.5179 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.837e-05/0.3583, allocations: 152.1 kB / 0.518 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3584, allocations: 0 / 0.518 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3584, allocations: 0 / 0.518 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3584, allocations: 0 / 0.518 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.3584, allocations: 6.781 kB / 0.518 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.3584, allocations: 0 / 0.518 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3584, allocations: 0 / 0.518 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.3586, allocations: 0.6422 MB / 0.5186 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.765e-05/0.3586, allocations: 80.05 kB / 0.5187 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.3587, allocations: 0 / 0.5187 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-06/0.3587, allocations: 0 / 0.5187 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.3587, allocations: 6.219 kB / 0.5187 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3587, allocations: 0 / 0.5187 GB, free: 34.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.305e-05/0.3587, allocations: 83.25 kB / 0.5188 GB, free: 34.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3587, allocations: 0 / 0.5188 GB, free: 34.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003446/0.3591, allocations: 22.16 kB / 0.5188 GB, free: 34.12 MB / 378.7 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.0005277/0.3596, allocations: 273.1 kB / 0.5191 GB, free: 33.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.552e-05/0.3597, allocations: 61.16 kB / 0.5191 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3597, allocations: 0 / 0.5191 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.961e-05/0.3597, allocations: 54.22 kB / 0.5192 GB, free: 33.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.3599, allocations: 18.77 kB / 0.5192 GB, free: 33.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002167/0.3601, allocations: 175.6 kB / 0.5194 GB, free: 33.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.3602, allocations: 0.6752 MB / 0.52 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.552e-06/0.3602, allocations: 0 / 0.52 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.853e-06/0.3602, allocations: 7.438 kB / 0.52 GB, free: 32.92 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3602, allocations: 0 / 0.52 GB, free: 32.92 MB / 378.7 MB Notification: Performance of Templates: time 0.002718/0.363, allocations: 0.7975 MB / 0.5208 GB, free: 32.78 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches