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.001893/0.001893, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.2 MB / 219 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008905/0.0008906, allocations: 96.44 kB / 267.1 MB, free: 9.281 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.08574/0.08574, allocations: 12.59 MB / 327.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.522e-05/3.539e-05, allocations: 4 kB / 386 MB, free: 69.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 50.37 MB / 436.4 MB, free: 19.24 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3909/0.4999, allocations: 81.94 MB / 0.5062 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.5002, allocations: 89.12 kB / 0.5062 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01434/0.5145, allocations: 6.039 MB / 0.5121 GB, free: 9.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5146, allocations: 0 / 0.5121 GB, free: 9.582 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.5146, allocations: 3.812 kB / 0.5121 GB, free: 9.582 MB / 330.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.0005454/0.5152, allocations: 0.4948 MB / 0.5126 GB, free: 9.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.5152, allocations: 7.688 kB / 0.5126 GB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.1e-05/0.5153, allocations: 23.34 kB / 0.5127 GB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004091/0.5157, allocations: 295 kB / 0.5129 GB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.5157, allocations: 7.828 kB / 0.5129 GB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.5158, allocations: 15.56 kB / 0.513 GB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.5161, allocations: 165.1 kB / 0.5131 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.5161, allocations: 0 / 0.5131 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.887e-05/0.5161, allocations: 3.625 kB / 0.5131 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.5161, allocations: 3.812 kB / 0.5131 GB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.903e-05/0.5162, allocations: 41.27 kB / 0.5132 GB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005196/0.5168, allocations: 0.4885 MB / 0.5136 GB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.5169, allocations: 135.5 kB / 0.5138 GB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.87e-05/0.517, allocations: 60.55 kB / 0.5138 GB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.517, allocations: 3.844 kB / 0.5138 GB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.5172, allocations: 88.48 kB / 0.5139 GB, free: 8.062 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.5172, allocations: 4 kB / 0.5139 GB, free: 8.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002752/0.5175, allocations: 138 kB / 0.5141 GB, free: 8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.5176, allocations: 191.2 kB / 0.5142 GB, free: 7.777 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002573/0.5178, allocations: 298.1 kB / 0.5145 GB, free: 7.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.5178, allocations: 25.7 kB / 0.5145 GB, free: 7.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.295e-05/0.5179, allocations: 134.5 kB / 0.5147 GB, free: 7.523 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.5179, allocations: 22.94 kB / 0.5147 GB, free: 7.512 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.518, allocations: 7.188 kB / 0.5147 GB, free: 7.508 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.17e-05/0.518, allocations: 337.1 kB / 0.515 GB, free: 7.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.449e-05/0.5181, allocations: 21.97 kB / 0.515 GB, free: 7.184 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.906e-05/0.5182, allocations: 99.92 kB / 0.5151 GB, free: 7.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.821e-05/0.5182, allocations: 36.08 kB / 0.5152 GB, free: 7.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.5182, allocations: 0 / 0.5152 GB, free: 7.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001696/0.5184, allocations: 132.8 kB / 0.5153 GB, free: 7.035 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.5184, allocations: 8 kB / 0.5153 GB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.5185, allocations: 4 kB / 0.5153 GB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5185, allocations: 3.906 kB / 0.5153 GB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.5186, allocations: 26.48 kB / 0.5153 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.5186, allocations: 3.969 kB / 0.5153 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.627e-05/0.5187, allocations: 11.8 kB / 0.5154 GB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.5187, allocations: 7.531 kB / 0.5154 GB, free: 7.016 MB / 330.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 7.259e-05/0.5188, allocations: 124.4 kB / 0.5155 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.648e-05/0.5189, allocations: 75.5 kB / 0.5156 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.5191, allocations: 120 kB / 0.5157 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.5191, allocations: 3.844 kB / 0.5157 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.5191, allocations: 0 / 0.5157 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.5191, allocations: 3.844 kB / 0.5157 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.5193, allocations: 258.4 kB / 0.5159 GB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.5193, allocations: 3.938 kB / 0.5159 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.5194, allocations: 19.36 kB / 0.5159 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.5194, allocations: 0 / 0.5159 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.5194, allocations: 11.84 kB / 0.516 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.5195, allocations: 0 / 0.516 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5195, allocations: 0 / 0.516 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002177/0.5197, allocations: 225 kB / 0.5162 GB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.5198, allocations: 126.5 kB / 0.5163 GB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.5198, allocations: 11.09 kB / 0.5163 GB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.982e-05/0.5199, allocations: 0 / 0.5163 GB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.52, allocations: 18.78 kB / 0.5163 GB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.52, allocations: 3.844 kB / 0.5163 GB, free: 6.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001806/0.5202, allocations: 242.4 kB / 0.5166 GB, free: 6.148 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.5202, allocations: 0 / 0.5166 GB, free: 6.148 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002708/0.5205, allocations: 57.09 kB / 0.5166 GB, free: 6.133 MB / 330.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.000832/0.5213, allocations: 395.1 kB / 0.517 GB, free: 5.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002066/0.5215, allocations: 91.16 kB / 0.5171 GB, free: 5.812 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5215, allocations: 3.938 kB / 0.5171 GB, free: 5.812 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.041e-05/0.5216, allocations: 40.7 kB / 0.5171 GB, free: 5.805 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.5219, allocations: 66.84 kB / 0.5172 GB, free: 5.785 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004242/0.5224, allocations: 308.3 kB / 0.5175 GB, free: 5.609 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/0.5226, allocations: 0.7452 MB / 0.5182 GB, free: 4.887 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.453e-05/0.5227, allocations: 41.02 kB / 0.5182 GB, free: 4.867 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.191e-05/0.5227, allocations: 26.19 kB / 0.5183 GB, free: 4.859 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5227, allocations: 0 / 0.5183 GB, free: 4.859 MB / 330.7 MB Notification: Performance of Templates: time 0.00531/0.528, allocations: 2.84 MB / 0.521 GB, free: 2.977 MB / 330.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