Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.3 MB / 213.8 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007501/0.0007499, allocations: 86.58 kB / 261.8 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0674/0.0674, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.342e-05/1.344e-05, allocations: 4 kB / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2351, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1029/0.338, allocations: 81.28 MB / 0.4986 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.3383, allocations: 83.95 kB / 0.4987 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01524/0.3535, allocations: 6.003 MB / 0.5046 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3536, allocations: 0 / 0.5046 GB, free: 10.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.3536, allocations: 8 kB / 0.5046 GB, free: 10.87 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.0006115/0.3542, allocations: 0.4889 MB / 0.505 GB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3543, allocations: 8.031 kB / 0.5051 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.927e-05/0.3543, allocations: 23.72 kB / 0.5051 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.3548, allocations: 290.4 kB / 0.5054 GB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.3548, allocations: 11.89 kB / 0.5054 GB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.3549, allocations: 4 kB / 0.5054 GB, free: 9.957 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001275/0.355, allocations: 39.98 kB / 0.5054 GB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.3553, allocations: 164.4 kB / 0.5056 GB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3553, allocations: 3.984 kB / 0.5056 GB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.3553, allocations: 0 / 0.5056 GB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3554, allocations: 4 kB / 0.5056 GB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005076/0.3559, allocations: 463.1 kB / 0.506 GB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.356, allocations: 134.5 kB / 0.5061 GB, free: 9.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.376e-05/0.3561, allocations: 51.55 kB / 0.5062 GB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.3562, allocations: 4 kB / 0.5062 GB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001515/0.3563, allocations: 101 kB / 0.5063 GB, free: 8.867 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.3563, allocations: 0 / 0.5063 GB, free: 8.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002715/0.3566, allocations: 129.3 kB / 0.5064 GB, free: 8.734 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/0.3567, allocations: 188 kB / 0.5066 GB, free: 8.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.357, allocations: 286.3 kB / 0.5069 GB, free: 8.227 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.357, allocations: 29.7 kB / 0.5069 GB, free: 8.191 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.3571, allocations: 128.3 kB / 0.507 GB, free: 8.059 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.3571, allocations: 23.73 kB / 0.507 GB, free: 8.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.3572, allocations: 0 / 0.507 GB, free: 8.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3573, allocations: 330.8 kB / 0.5074 GB, free: 7.703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.991e-05/0.3573, allocations: 20 kB / 0.5074 GB, free: 7.684 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.648e-05/0.3574, allocations: 111.6 kB / 0.5075 GB, free: 7.547 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.489e-05/0.3575, allocations: 28 kB / 0.5075 GB, free: 7.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3575, allocations: 8 kB / 0.5075 GB, free: 7.512 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001764/0.3577, allocations: 129.3 kB / 0.5076 GB, free: 7.379 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3577, allocations: 4 kB / 0.5076 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.3577, allocations: 0 / 0.5076 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3577, allocations: 4 kB / 0.5076 GB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.3579, allocations: 19.98 kB / 0.5077 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3579, allocations: 4 kB / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.927e-05/0.358, allocations: 11.92 kB / 0.5077 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.358, allocations: 8.156 kB / 0.5077 GB, free: 7.328 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,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete 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 8.923e-05/0.3581, allocations: 120.9 kB / 0.5078 GB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.899e-05/0.3582, allocations: 65.41 kB / 0.5079 GB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.3584, allocations: 111.4 kB / 0.508 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.3584, allocations: 4 kB / 0.508 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3584, allocations: 0 / 0.508 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3584, allocations: 0 / 0.508 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.3587, allocations: 234.2 kB / 0.5082 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3587, allocations: 0 / 0.5082 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.523e-05/0.3587, allocations: 15.98 kB / 0.5082 GB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3588, allocations: 11.89 kB / 0.5082 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.3588, allocations: 0 / 0.5082 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.175e-06/0.3588, allocations: 4 kB / 0.5082 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.3588, allocations: 3.938 kB / 0.5082 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002456/0.359, allocations: 212.5 kB / 0.5084 GB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3592, allocations: 120.8 kB / 0.5085 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.3592, allocations: 8 kB / 0.5086 GB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.323e-05/0.3593, allocations: 7.984 kB / 0.5086 GB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.3594, allocations: 7.984 kB / 0.5086 GB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.3594, allocations: 8 kB / 0.5086 GB, free: 6.289 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002188/0.3596, allocations: 233.9 kB / 0.5088 GB, free: 6.059 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3596, allocations: 3.938 kB / 0.5088 GB, free: 6.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002882/0.3599, allocations: 55.92 kB / 0.5089 GB, free: 6 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,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.0007846/0.3607, allocations: 364.4 kB / 0.5092 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002015/0.3609, allocations: 91.88 kB / 0.5093 GB, free: 5.555 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3609, allocations: 0 / 0.5093 GB, free: 5.555 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.583e-05/0.361, allocations: 39.92 kB / 0.5093 GB, free: 5.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.3613, allocations: 59.88 kB / 0.5094 GB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005112/0.3618, allocations: 300.7 kB / 0.5097 GB, free: 5.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.3622, allocations: 0.7477 MB / 0.5104 GB, free: 4.355 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.509e-05/0.3622, allocations: 34.12 kB / 0.5104 GB, free: 4.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.477e-05/0.3623, allocations: 23.44 kB / 0.5105 GB, free: 4.305 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3623, allocations: 4 kB / 0.5105 GB, free: 4.301 MB / 362.7 MB Notification: Performance of Templates: time 0.005795/0.3681, allocations: 2.667 MB / 0.5131 GB, free: 1.641 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.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