Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002645/0.002645, allocations: 210.9 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.596/1.596, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4242, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004655/0.4288, allocations: 1.872 MB / 434.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.4319, allocations: 1.208 MB / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.4321, allocations: 7.938 kB / 435.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003808/0.4324, allocations: 63.67 kB / 435.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000474/0.4329, allocations: 135.4 kB / 435.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008801/0.4338, allocations: 227 kB / 435.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.4341, allocations: 179.5 kB / 436 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.4343, allocations: 25.39 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.4344, allocations: 87.52 kB / 436.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.4346, allocations: 87.66 kB / 436.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.432e-05/0.4347, allocations: 8 kB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002299/0.4349, allocations: 79.94 kB / 436.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.435, allocations: 51.78 kB / 436.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.952e-05/0.4351, allocations: 63.53 kB / 436.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004676/0.4356, allocations: 234 kB / 436.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4356, allocations: 0 / 436.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4356, allocations: 0 / 436.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.4356, allocations: 0 / 436.6 MB, free: 2.414 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008989/0.4365, allocations: 490.4 kB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.4365, allocations: 8.031 kB / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.985e-05/0.4366, allocations: 24.8 kB / 437.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005483/0.4371, allocations: 229.5 kB / 437.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.4372, allocations: 8.375 kB / 437.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.4372, allocations: 8.125 kB / 437.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.4376, allocations: 176.4 kB / 437.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.4377, allocations: 0 / 437.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.4377, allocations: 8 kB / 437.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.4377, allocations: 4 kB / 437.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.4378, allocations: 39.95 kB / 437.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006519/0.4385, allocations: 322 kB / 437.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.4389, allocations: 111.9 kB / 438 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.439, allocations: 46.55 kB / 438.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.439, allocations: 4 kB / 438.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.4392, allocations: 87.31 kB / 438.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.673e-06/0.4392, allocations: 4 kB / 438.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005193/0.4398, allocations: 153.4 kB / 438.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.4399, allocations: 136.5 kB / 438.4 MB, free: 388 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005019/0.4404, allocations: 333.8 kB / 438.8 MB, free: 48 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.4404, allocations: 29.7 kB / 438.8 MB, free: 12 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.4405, allocations: 136.1 kB / 438.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.805e-05/0.4406, allocations: 19.91 kB / 439 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/0.4407, allocations: 33.64 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.4409, allocations: 339 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.441, allocations: 27.98 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.4411, allocations: 133.4 kB / 439.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/0.4414, allocations: 84.2 kB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.4414, allocations: 4 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003406/0.4417, allocations: 129.5 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.4417, allocations: 4 kB / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4417, allocations: 0 / 439.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.4418, allocations: 7.938 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.4419, allocations: 19.98 kB / 439.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.4419, allocations: 4 kB / 439.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.442, allocations: 4 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.442, allocations: 4 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0002054/0.4422, allocations: 162.4 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.4424, allocations: 77.47 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/0.4427, allocations: 119.4 kB / 440.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.4427, allocations: 320 / 440.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.4427, allocations: 4 kB / 440.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.4428, allocations: 3.984 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.443, allocations: 185.1 kB / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.443, allocations: 0 / 440.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.76e-05/0.4431, allocations: 15.98 kB / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.4431, allocations: 0 / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.4431, allocations: 4 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4431, allocations: 8 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4431, allocations: 0 / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.4435, allocations: 178.5 kB / 440.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.4436, allocations: 39.83 kB / 440.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.4437, allocations: 4 kB / 440.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.684e-05/0.4438, allocations: 7.938 kB / 440.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.4438, allocations: 11.98 kB / 440.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.4439, allocations: 7.984 kB / 440.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003645/0.4442, allocations: 245.2 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4442, allocations: 0 / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003998/0.4446, allocations: 35.94 kB / 440.8 MB, free: 13.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00206/0.4467, allocations: 459.5 kB / 441.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.447, allocations: 83.77 kB / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.447, allocations: 0 / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.4471, allocations: 27.97 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005436/0.4477, allocations: 63.89 kB / 441.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008653/0.4485, allocations: 384.9 kB / 441.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/0.4487, allocations: 135.8 kB / 441.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.4488, allocations: 25.62 kB / 442 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.395e-05/0.4489, allocations: 23.44 kB / 442 MB, free: 12.79 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4489, allocations: 4 kB / 442 MB, free: 12.79 MB / 350.1 MB Notification: Performance of Templates: time 0.01031/0.4592, allocations: 3.133 MB / 445.1 MB, free: 9.695 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.0943458849942544]