Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 181.2 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 93.33 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.0002741, allocations: 8 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3067, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1068/0.4136, allocations: 81.32 MB / 482.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.414, allocations: 83.94 kB / 482.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01705/0.4311, allocations: 6.237 MB / 489.1 MB, free: 8.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4311, allocations: 0 / 489.1 MB, free: 8.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.4311, allocations: 11.94 kB / 489.1 MB, free: 8.852 MB / 362.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.0007699/0.4319, allocations: 0.5349 MB / 489.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.432, allocations: 8.031 kB / 489.7 MB, free: 8.254 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.4321, allocations: 23.72 kB / 489.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004844/0.4325, allocations: 294.4 kB / 490 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.4326, allocations: 4 kB / 490 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.4326, allocations: 8 kB / 490 MB, free: 7.891 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.433, allocations: 176.1 kB / 490.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.433, allocations: 0 / 490.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.433, allocations: 0 / 490.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.4331, allocations: 7.953 kB / 490.2 MB, free: 7.684 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.4332, allocations: 43.91 kB / 490.2 MB, free: 7.641 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006536/0.4338, allocations: 490.6 kB / 490.7 MB, free: 7.102 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.4341, allocations: 150.8 kB / 490.9 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.4342, allocations: 3.984 kB / 490.9 MB, free: 6.914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.4344, allocations: 109 kB / 491 MB, free: 6.789 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.984e-06/0.4344, allocations: 3.938 kB / 491 MB, free: 6.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004177/0.4348, allocations: 169.3 kB / 491.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.4349, allocations: 183.9 kB / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.4353, allocations: 306.1 kB / 491.6 MB, free: 6.082 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.4353, allocations: 29.7 kB / 491.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.4354, allocations: 128.4 kB / 491.8 MB, free: 5.914 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.4355, allocations: 23.73 kB / 491.8 MB, free: 5.891 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.4355, allocations: 3.938 kB / 491.8 MB, free: 5.887 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4357, allocations: 326.8 kB / 492.1 MB, free: 5.559 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.52e-05/0.4357, allocations: 31.98 kB / 492.1 MB, free: 5.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.4359, allocations: 109.3 kB / 492.2 MB, free: 5.395 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.183e-05/0.436, allocations: 28 kB / 492.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.436, allocations: 0 / 492.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002462/0.4362, allocations: 149.2 kB / 492.4 MB, free: 5.215 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4362, allocations: 11.89 kB / 492.4 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4363, allocations: 3.938 kB / 492.4 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.4363, allocations: 4 kB / 492.4 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.4364, allocations: 19.98 kB / 492.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.4364, allocations: 4 kB / 492.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.517e-05/0.4365, allocations: 7.984 kB / 492.5 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.4365, allocations: 8 kB / 492.5 MB, free: 5.156 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.4367, allocations: 153.9 kB / 492.6 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.4368, allocations: 77.34 kB / 492.7 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.4371, allocations: 135.3 kB / 492.8 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4371, allocations: 4 kB / 492.8 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4371, allocations: 0 / 492.8 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4372, allocations: 4 kB / 492.8 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002739/0.4374, allocations: 249.5 kB / 493.1 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4374, allocations: 8.062 kB / 493.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.885e-05/0.4375, allocations: 15.98 kB / 493.1 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.4375, allocations: 0 / 493.1 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.4376, allocations: 4.312 kB / 493.1 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.4376, allocations: 11.89 kB / 493.1 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4376, allocations: 4 kB / 493.1 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.4379, allocations: 231.2 kB / 493.4 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.4381, allocations: 124.7 kB / 493.5 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.4381, allocations: 8.047 kB / 493.5 MB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.521e-05/0.4382, allocations: 7.984 kB / 493.5 MB, free: 4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.4383, allocations: 7.984 kB / 493.5 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.4383, allocations: 12 kB / 493.5 MB, free: 3.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002449/0.4386, allocations: 245.9 kB / 493.8 MB, free: 3.738 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4386, allocations: 0 / 493.8 MB, free: 3.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003245/0.4389, allocations: 51.98 kB / 493.8 MB, free: 3.688 MB / 362.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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001051/0.44, allocations: 451.6 kB / 494.2 MB, free: 3.402 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003166/0.4403, allocations: 96.02 kB / 494.3 MB, free: 3.309 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4403, allocations: 0 / 494.3 MB, free: 3.309 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.4404, allocations: 43.91 kB / 494.4 MB, free: 3.266 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.4408, allocations: 64.36 kB / 494.4 MB, free: 3.203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007013/0.4415, allocations: 429.5 kB / 494.9 MB, free: 2.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.4418, allocations: 0.7479 MB / 495.6 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.4419, allocations: 29.53 kB / 495.6 MB, free: 1.949 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.363e-05/0.442, allocations: 23.44 kB / 495.7 MB, free: 1.93 MB / 362.7 MB Notification: Performance of SimCode: time 2.645e-06/0.442, allocations: 0 / 495.7 MB, free: 1.93 MB / 362.7 MB Notification: Performance of Templates: time 0.006439/0.4484, allocations: 2.831 MB / 498.5 MB, free: 15.12 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time