Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001415/0.001415, allocations: 96.25 kB / 20.96 MB, free: 3.461 MB / 18.57 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.001536/0.001536, allocations: 156.9 kB / 24.27 MB, free: 164 kB / 18.57 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.453/1.453, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.058e-05/3.2e-05, allocations: 5.266 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004036/0.004068, allocations: 1.874 MB / 274.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.006728, allocations: 1.199 MB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.006901, allocations: 7.938 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004182/0.00732, allocations: 79.53 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005086/0.007828, allocations: 131.4 kB / 275.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008335/0.008662, allocations: 227.1 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003665/0.009028, allocations: 183.4 kB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.009158, allocations: 21.8 kB / 275.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.009402, allocations: 99.73 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.009578, allocations: 71.84 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.009614, allocations: 8 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.009829, allocations: 79.81 kB / 276.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.009934, allocations: 51.77 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.662e-05/0.01002, allocations: 39.86 kB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004851/0.01051, allocations: 247.1 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.01051, allocations: 3.984 kB / 276.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01051, allocations: 0 / 276.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.01052, allocations: 0 / 276.5 MB, free: 13.49 MB / 266.7 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.0009115/0.01143, allocations: 474.5 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.01147, allocations: 11.98 kB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.01159, allocations: 36.78 kB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.01214, allocations: 244.7 kB / 277.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.01216, allocations: 4.375 kB / 277.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.01218, allocations: 8.375 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000467/0.01265, allocations: 180.9 kB / 277.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.01266, allocations: 192 / 277.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.01268, allocations: 8.359 kB / 277.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.01269, allocations: 7.938 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.01283, allocations: 31.92 kB / 277.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006178/0.01344, allocations: 318.2 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.01377, allocations: 123.8 kB / 277.9 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.01389, allocations: 46.56 kB / 278 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.01392, allocations: 7.938 kB / 278 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.01416, allocations: 79.38 kB / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 2.284e-06/0.01416, allocations: 0 / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005121/0.01467, allocations: 161.4 kB / 278.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.01479, allocations: 136.5 kB / 278.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004727/0.01527, allocations: 333.9 kB / 278.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.01531, allocations: 33.7 kB / 278.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.01543, allocations: 132.3 kB / 278.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.01546, allocations: 23.95 kB / 278.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-05/0.01552, allocations: 25.72 kB / 278.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000428/0.01595, allocations: 334.8 kB / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.802e-05/0.01605, allocations: 23.98 kB / 279.2 MB, free: 10.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.01619, allocations: 106.8 kB / 279.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.01635, allocations: 61.7 kB / 279.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.01635, allocations: 0 / 279.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002694/0.01662, allocations: 117.4 kB / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.01664, allocations: 12.05 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.01664, allocations: 0 / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.01666, allocations: 0 / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.01676, allocations: 12 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.01676, allocations: 0 / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.278e-05/0.01685, allocations: 11.98 kB / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.01686, allocations: 4 kB / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001737/0.01703, allocations: 146.1 kB / 279.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.01715, allocations: 77.42 kB / 279.8 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.01748, allocations: 131.4 kB / 279.9 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.01748, allocations: 4 kB / 279.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.01749, allocations: 0 / 279.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.01749, allocations: 0 / 279.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.01772, allocations: 181.1 kB / 280.1 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.01773, allocations: 7.922 kB / 280.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.398e-05/0.0178, allocations: 12 kB / 280.1 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.01781, allocations: 3.938 kB / 280.1 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.01782, allocations: 4 kB / 280.1 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.01782, allocations: 0 / 280.1 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.499e-05/0.01784, allocations: 7.984 kB / 280.1 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.01819, allocations: 178.5 kB / 280.3 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.814e-05/0.01829, allocations: 39.78 kB / 280.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.01832, allocations: 4 kB / 280.3 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.627e-05/0.01839, allocations: 7.984 kB / 280.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.712e-05/0.01846, allocations: 15.97 kB / 280.3 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.01848, allocations: 4 kB / 280.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003181/0.0188, allocations: 245.2 kB / 280.6 MB, free: 9.043 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0188, allocations: 4 kB / 280.6 MB, free: 9.039 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002881/0.01909, allocations: 35.86 kB / 280.6 MB, free: 9.004 MB / 266.7 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.002056/0.02114, allocations: 444.4 kB / 281.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.0214, allocations: 67.89 kB / 281.1 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.0214, allocations: 11.94 kB / 281.1 MB, free: 8.637 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.776e-05/0.0215, allocations: 27.97 kB / 281.2 MB, free: 8.609 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.02197, allocations: 71.92 kB / 281.2 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007983/0.02276, allocations: 390.1 kB / 281.6 MB, free: 8.121 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.02293, allocations: 135.9 kB / 281.7 MB, free: 7.969 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.358e-05/0.02301, allocations: 21.48 kB / 281.8 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.65e-05/0.02308, allocations: 24.48 kB / 281.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02308, allocations: 4 kB / 281.8 MB, free: 7.922 MB / 266.7 MB Notification: Performance of Templates: time 0.00792/0.031, allocations: 2.965 MB / 284.8 MB, free: 4.992 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.370451914030127]