Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.0009523/0.0009523, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001116/0.001116, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9742/0.9742, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] 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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.281e-05/1.402e-05, allocations: 5.266 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002231/0.002245, allocations: 1.967 MB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.003573, allocations: 1.273 MB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.439e-05/0.003657, allocations: 3.938 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002374/0.003895, allocations: 71.55 kB / 276.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002517/0.004146, allocations: 139.4 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.004546, allocations: 227.2 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.004716, allocations: 187.4 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.051e-05/0.004796, allocations: 25.73 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.004903, allocations: 111.7 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.841e-05/0.004991, allocations: 75.78 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.005011, allocations: 15.98 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.00512, allocations: 63.94 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.29e-05/0.005183, allocations: 55.78 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.901e-05/0.005232, allocations: 43.84 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.005456, allocations: 195.2 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.005458, allocations: 3.938 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005459, allocations: 0 / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.005462, allocations: 0 / 277.3 MB, free: 13.01 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004596/0.005922, allocations: 0.5749 MB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.952e-05/0.005951, allocations: 11.98 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/0.006002, allocations: 40.75 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.006221, allocations: 223.6 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.006236, allocations: 8.375 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.006253, allocations: 4.375 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.0065, allocations: 218.2 kB / 278.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.006508, allocations: 192 / 278.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.006518, allocations: 8.375 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.006526, allocations: 7.938 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.982e-05/0.006576, allocations: 27.91 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003635/0.006939, allocations: 493.9 kB / 278.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.007081, allocations: 148.5 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.894e-05/0.00713, allocations: 58.73 kB / 279.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.007147, allocations: 7.922 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/0.007255, allocations: 96.36 kB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 9.02e-07/0.007256, allocations: 0 / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.000218/0.007474, allocations: 137.4 kB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.007543, allocations: 162.2 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.007749, allocations: 330.3 kB / 279.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.007763, allocations: 30.08 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.921e-05/0.007842, allocations: 187.1 kB / 280.1 MB, free: 9.961 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.007862, allocations: 23.83 kB / 280.1 MB, free: 9.938 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.007898, allocations: 35.36 kB / 280.1 MB, free: 9.895 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.008012, allocations: 0.5001 MB / 280.6 MB, free: 9.383 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.391e-05/0.008036, allocations: 19.86 kB / 280.6 MB, free: 9.363 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.607e-05/0.008092, allocations: 109.8 kB / 280.8 MB, free: 9.223 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.968e-05/0.008152, allocations: 59.25 kB / 280.8 MB, free: 9.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.008153, allocations: 0 / 280.8 MB, free: 9.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001097/0.008263, allocations: 109.4 kB / 280.9 MB, free: 9.039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.008272, allocations: 6.656 kB / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.008276, allocations: 0 / 280.9 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.008287, allocations: 4 kB / 280.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.774e-05/0.008345, allocations: 12 kB / 280.9 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.00835, allocations: 3.984 kB / 280.9 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.502e-05/0.008385, allocations: 4 kB / 280.9 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.008392, allocations: 4 kB / 281 MB, free: 9.008 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.355e-05/0.008466, allocations: 168.5 kB / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.788e-05/0.008523, allocations: 85.44 kB / 281.2 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.008654, allocations: 107.5 kB / 281.3 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.008657, allocations: 4 kB / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.00866, allocations: 0 / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.008665, allocations: 4 kB / 281.3 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.008794, allocations: 192.5 kB / 281.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.008795, allocations: 0 / 281.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-05/0.008835, allocations: 19.98 kB / 281.5 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.008838, allocations: 7.938 kB / 281.5 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.008846, allocations: 8.062 kB / 281.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.008847, allocations: 0 / 281.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.008848, allocations: 0 / 281.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.008994, allocations: 199.2 kB / 281.7 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.009046, allocations: 43.77 kB / 281.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.009064, allocations: 4 kB / 281.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.364e-05/0.009098, allocations: 8.047 kB / 281.8 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.00914, allocations: 11.98 kB / 281.8 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.009152, allocations: 8 kB / 281.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001243/0.009276, allocations: 227 kB / 282 MB, free: 7.836 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.009276, allocations: 4 kB / 282 MB, free: 7.832 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001599/0.009436, allocations: 31.94 kB / 282.1 MB, free: 7.801 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.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 (12): * Single equations (assignments): 10 * 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.0007467/0.01018, allocations: 401.4 kB / 282.5 MB, free: 7.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.01029, allocations: 63.58 kB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.01029, allocations: 0 / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.803e-05/0.01033, allocations: 27.67 kB / 282.5 MB, free: 7.422 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.01058, allocations: 73.97 kB / 282.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003907/0.01097, allocations: 373.5 kB / 283 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.542e-05/0.01101, allocations: 87.97 kB / 283.1 MB, free: 6.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.593e-05/0.01106, allocations: 25.61 kB / 283.1 MB, free: 6.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.0111, allocations: 28.44 kB / 283.1 MB, free: 6.785 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01111, allocations: 0 / 283.1 MB, free: 6.785 MB / 266.7 MB Notification: Performance of Templates: time 0.004399/0.0155, allocations: 3.102 MB / 286.2 MB, free: 3.723 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.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.9037890899926424]