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.0008961/0.0008961, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.00132/0.00132, allocations: 141.1 kB / 24.54 MB, free: 36 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 1.004/1.004, allocations: 173.3 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 2.074e-06/2.074e-06, allocations: 3.938 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.074e-05/3.281e-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.003209/0.003242, allocations: 1.594 MB / 269.6 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005542/0.003796, allocations: 151.4 kB / 269.7 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.003902, allocations: 4 kB / 269.8 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.789e-05/0.00397, allocations: 7.875 kB / 269.8 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.004143, allocations: 0 / 269.8 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.004459, allocations: 47.77 kB / 269.8 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.00458, allocations: 31.92 kB / 269.8 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.004703, allocations: 8 kB / 269.8 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.183e-05/0.004775, allocations: 19.92 kB / 269.9 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.208e-05/0.004827, allocations: 15.91 kB / 269.9 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.004852, allocations: 0 / 269.9 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.445e-05/0.004867, allocations: 4 kB / 269.9 MB, free: 4.543 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.561e-05/0.004932, allocations: 15.92 kB / 269.9 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.004976, allocations: 11.94 kB / 269.9 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.005121, allocations: 35.84 kB / 269.9 MB, free: 4.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.005126, allocations: 0 / 269.9 MB, free: 4.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.005127, allocations: 4 kB / 269.9 MB, free: 4.477 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.005135, allocations: 0 / 269.9 MB, free: 4.477 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.0005745/0.005709, allocations: 392.4 kB / 270.3 MB, free: 4.055 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.005759, allocations: 8.922 kB / 270.3 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.005821, allocations: 16.88 kB / 270.4 MB, free: 4.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.006066, allocations: 132.5 kB / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.00608, allocations: 384 / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.006099, allocations: 8.375 kB / 270.5 MB, free: 3.867 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003535/0.006452, allocations: 129.6 kB / 270.6 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.006465, allocations: 192 / 270.6 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.006477, allocations: 384 / 270.6 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.006489, allocations: 4.375 kB / 270.6 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.461e-05/0.006524, allocations: 11.88 kB / 270.6 MB, free: 3.699 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004165/0.00694, allocations: 275.4 kB / 270.9 MB, free: 3.391 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.007153, allocations: 70.11 kB / 271 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.535e-05/0.007209, allocations: 23.44 kB / 271 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.007235, allocations: 4 kB / 271 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.007267, allocations: 37.39 kB / 271 MB, free: 3.215 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.007268, allocations: 0 / 271 MB, free: 3.215 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002151/0.007483, allocations: 69.5 kB / 271.1 MB, free: 3.141 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.007543, allocations: 77.11 kB / 271.2 MB, free: 3.047 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.007697, allocations: 193.6 kB / 271.4 MB, free: 2.844 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.00771, allocations: 25.7 kB / 271.4 MB, free: 2.812 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.514e-05/0.007786, allocations: 138.8 kB / 271.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.007802, allocations: 0 / 271.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.007838, allocations: 19.45 kB / 271.6 MB, free: 2.645 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.008032, allocations: 0.4923 MB / 272 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.63e-05/0.008048, allocations: 4 kB / 272 MB, free: 2.137 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.844e-06/0.008056, allocations: 0 / 272 MB, free: 2.137 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.036e-05/0.008086, allocations: 15.62 kB / 272.1 MB, free: 2.117 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.008089, allocations: 0 / 272.1 MB, free: 2.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.505e-05/0.008164, allocations: 29.7 kB / 272.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.008181, allocations: 8 kB / 272.1 MB, free: 2.074 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.008189, allocations: 3.938 kB / 272.1 MB, free: 2.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.008209, allocations: 0 / 272.1 MB, free: 2.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.696e-05/0.008266, allocations: 8.094 kB / 272.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.008275, allocations: 0 / 272.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.773e-05/0.008302, allocations: 3.984 kB / 272.1 MB, free: 2.059 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.008308, allocations: 0 / 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 9.712e-05/0.008405, allocations: 156.6 kB / 272.3 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/0.008493, allocations: 45.59 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.167e-05/0.008555, allocations: 20.5 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.008559, allocations: 3.984 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.008565, allocations: 4 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.008568, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.008753, allocations: 132.6 kB / 272.5 MB, free: 1.645 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.008756, allocations: 0 / 272.5 MB, free: 1.645 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.559e-05/0.008811, allocations: 11.98 kB / 272.5 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.008816, allocations: 0 / 272.5 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.008826, allocations: 3.938 kB / 272.5 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.008832, allocations: 3.938 kB / 272.5 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.008836, allocations: 4 kB / 272.5 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.008995, allocations: 207.5 kB / 272.7 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.009045, allocations: 15.94 kB / 272.7 MB, free: 1.379 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.009061, allocations: 4 kB / 272.7 MB, free: 1.375 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.987e-05/0.009121, allocations: 3.938 kB / 272.7 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.009159, allocations: 4 kB / 272.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.009165, allocations: 4 kB / 272.7 MB, free: 1.363 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.955e-05/0.009235, allocations: 139.2 kB / 272.9 MB, free: 1.227 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009235, allocations: 0 / 272.9 MB, free: 1.227 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002563/0.009491, 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 0.0001101/0.009601, allocations: 95.25 kB / 273 MB, free: 1.121 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.516e-05/0.009696, allocations: 23.61 kB / 273 MB, free: 1.094 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.009698, allocations: 0 / 273 MB, free: 1.094 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-05/0.009712, allocations: 11.75 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.0003809/0.01009, 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.0003699/0.01046, allocations: 160.8 kB / 273.2 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.541e-05/0.01052, allocations: 59.34 kB / 273.2 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.181e-05/0.01054, allocations: 0 / 273.2 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.268e-05/0.01057, allocations: 12.5 kB / 273.2 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01057, allocations: 0 / 273.2 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of Templates: time 0.003052/0.01363, allocations: 0.5213 MB / 273.8 MB, free: 268 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.946585324127227]