Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009895/0.0009895, allocations: 84 kB / 21.18 MB, free: 3.398 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 149.1 kB / 24.54 MB, free: 44 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9534/0.9534, allocations: 173.4 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.928e-05/3.104e-05, allocations: 6.25 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002179/0.002211, allocations: 1.592 MB / 269.6 MB, free: 4.832 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004067/0.002617, allocations: 147.4 kB / 269.7 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.182e-05/0.002689, allocations: 3.938 kB / 269.7 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.633e-05/0.002735, allocations: 7.922 kB / 269.8 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.002866, allocations: 8 kB / 269.8 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002078/0.003073, allocations: 43.77 kB / 269.8 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.69e-05/0.00316, allocations: 31.92 kB / 269.8 MB, free: 4.594 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.262e-05/0.003253, allocations: 7.938 kB / 269.8 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.061e-05/0.003304, allocations: 23.92 kB / 269.9 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.061e-05/0.003344, allocations: 11.97 kB / 269.9 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.003365, allocations: 0 / 269.9 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/0.003375, allocations: 4 kB / 269.9 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.645e-05/0.003421, allocations: 11.94 kB / 269.9 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.217e-05/0.003454, allocations: 15.92 kB / 269.9 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.003555, allocations: 31.84 kB / 269.9 MB, free: 4.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.003558, allocations: 4 kB / 269.9 MB, free: 4.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.003558, allocations: 0 / 269.9 MB, free: 4.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.003563, allocations: 0 / 269.9 MB, free: 4.484 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003671/0.00393, allocations: 396.4 kB / 270.3 MB, free: 4.059 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.003966, allocations: 8.922 kB / 270.3 MB, free: 4.051 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.004005, allocations: 8.891 kB / 270.3 MB, free: 4.043 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.004156, allocations: 144.5 kB / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-06/0.004163, allocations: 384 / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.004174, allocations: 4.375 kB / 270.5 MB, free: 3.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.004406, allocations: 137.5 kB / 270.6 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.004413, allocations: 192 / 270.6 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.004421, allocations: 384 / 270.6 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.004431, allocations: 4.375 kB / 270.6 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.079e-05/0.004451, allocations: 11.88 kB / 270.6 MB, free: 3.695 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002351/0.004686, allocations: 271.4 kB / 270.9 MB, free: 3.391 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.004817, allocations: 74.11 kB / 271 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.99e-05/0.004847, allocations: 19.44 kB / 271 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.004862, allocations: 4 kB / 271 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.004881, allocations: 33.39 kB / 271 MB, free: 3.219 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.004882, allocations: 0 / 271 MB, free: 3.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001441/0.005026, allocations: 69.52 kB / 271.1 MB, free: 3.145 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.005066, allocations: 81.09 kB / 271.2 MB, free: 3.047 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.082e-05/0.005157, allocations: 185.9 kB / 271.4 MB, free: 2.848 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.657e-06/0.005166, allocations: 25.7 kB / 271.4 MB, free: 2.816 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.005211, allocations: 134.8 kB / 271.5 MB, free: 2.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.266e-05/0.005223, allocations: 8.125 kB / 271.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.336e-05/0.005247, allocations: 23.33 kB / 271.6 MB, free: 2.641 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.005358, allocations: 496.1 kB / 272 MB, free: 2.145 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.085e-05/0.005369, allocations: 0 / 272 MB, free: 2.145 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.045e-06/0.005377, allocations: 7.922 kB / 272 MB, free: 2.137 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.179e-05/0.005399, allocations: 11.69 kB / 272.1 MB, free: 2.121 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.005401, allocations: 0 / 272.1 MB, free: 2.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.044e-05/0.005441, allocations: 33.7 kB / 272.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.005455, allocations: 8 kB / 272.1 MB, free: 2.074 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.00546, allocations: 8.031 kB / 272.1 MB, free: 2.066 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.005471, allocations: 0 / 272.1 MB, free: 2.066 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.713e-05/0.005508, allocations: 4 kB / 272.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.005513, allocations: 0 / 272.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.142e-05/0.005524, allocations: 0 / 272.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.00553, allocations: 3.984 kB / 272.1 MB, free: 2.059 MB / 250.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.901e-05/0.005589, allocations: 156.6 kB / 272.3 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.005627, allocations: 45.59 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.97e-05/0.005656, allocations: 20.27 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.005658, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.005662, allocations: 4 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.005664, allocations: 4.234 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.6e-05/0.00576, allocations: 120.6 kB / 272.5 MB, free: 1.656 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.005762, allocations: 4 kB / 272.5 MB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.766e-05/0.00579, allocations: 11.98 kB / 272.5 MB, free: 1.641 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.005792, allocations: 3.984 kB / 272.5 MB, free: 1.637 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.005799, allocations: 7.938 kB / 272.5 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.005801, allocations: 3.938 kB / 272.5 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.005803, allocations: 4 kB / 272.5 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.177e-05/0.005894, allocations: 207.5 kB / 272.7 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.346e-05/0.005918, allocations: 7.953 kB / 272.7 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.005929, allocations: 15.98 kB / 272.7 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.759e-05/0.005957, allocations: 3.938 kB / 272.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.005982, allocations: 0 / 272.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.005986, allocations: 4 kB / 272.7 MB, free: 1.363 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.527e-05/0.006031, allocations: 142.4 kB / 272.9 MB, free: 1.227 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006031, allocations: 0 / 272.9 MB, free: 1.227 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001265/0.006157, allocations: 4 kB / 272.9 MB, free: 1.223 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 6.691e-05/0.006224, allocations: 91.25 kB / 273 MB, free: 1.125 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.521e-05/0.00631, allocations: 31.61 kB / 273 MB, free: 1.09 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.006311, allocations: 0 / 273 MB, free: 1.09 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.137e-05/0.006322, allocations: 7.688 kB / 273 MB, free: 1.078 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.006575, allocations: 24.8 kB / 273 MB, free: 1.051 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003036/0.006879, allocations: 152.8 kB / 273.2 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.098e-05/0.00692, allocations: 63.34 kB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.629e-05/0.006936, allocations: 0 / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.006966, allocations: 12.5 kB / 273.2 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of SimCode: time 1.232e-06/0.006967, allocations: 128 / 273.2 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of Templates: time 0.002239/0.009206, allocations: 0.5533 MB / 273.8 MB, free: 240 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5113776829093695]