Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009739/0.0009738, allocations: 178.3 kB / 8.051 MB, free: 1.023 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.488/1.488, allocations: 205.3 MB / 213.8 MB, free: 1.676 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.0008018/0.0008018, allocations: 86.16 kB / 261.8 MB, free: 1.625 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.06688/0.06688, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.199e-05/1.201e-05, allocations: 0 / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2292, allocations: 50.36 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.331, allocations: 81.62 MB / 0.4989 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.3313, allocations: 83.89 kB / 0.499 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02277/0.3541, allocations: 8.594 MB / 0.5074 GB, free: 7.926 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.038e-06/0.3541, allocations: 4 kB / 0.5074 GB, free: 7.922 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.711e-05/0.3542, allocations: 7.938 kB / 0.5074 GB, free: 7.914 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007144/0.3549, allocations: 0.5189 MB / 0.5079 GB, free: 7.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3549, allocations: 12.03 kB / 0.508 GB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.163e-05/0.355, allocations: 27.62 kB / 0.508 GB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.3555, allocations: 310.4 kB / 0.5083 GB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3555, allocations: 11.95 kB / 0.5083 GB, free: 6.949 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.3556, allocations: 8 kB / 0.5083 GB, free: 6.941 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001545/0.3557, allocations: 83.91 kB / 0.5084 GB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.3562, allocations: 285.6 kB / 0.5086 GB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.3562, allocations: 0 / 0.5086 GB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.3562, allocations: 0 / 0.5086 GB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.3562, allocations: 4 kB / 0.5086 GB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005501/0.3568, allocations: 402.8 kB / 0.509 GB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.3571, allocations: 184 kB / 0.5092 GB, free: 5.906 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.3572, allocations: 86.61 kB / 0.5093 GB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.3572, allocations: 8 kB / 0.5093 GB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001236/0.3573, allocations: 71.39 kB / 0.5094 GB, free: 5.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.3574, allocations: 0 / 0.5094 GB, free: 5.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003685/0.3577, allocations: 185.2 kB / 0.5095 GB, free: 5.535 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.961e-05/0.3578, allocations: 162.2 kB / 0.5097 GB, free: 5.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.3582, allocations: 302.2 kB / 0.51 GB, free: 5.043 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.3582, allocations: 25.7 kB / 0.51 GB, free: 5.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.3583, allocations: 136.7 kB / 0.5101 GB, free: 4.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.3583, allocations: 27.94 kB / 0.5102 GB, free: 4.848 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-06/0.3584, allocations: 3.938 kB / 0.5102 GB, free: 4.844 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3585, allocations: 342.8 kB / 0.5105 GB, free: 4.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.983e-05/0.3586, allocations: 32.47 kB / 0.5105 GB, free: 4.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.3587, allocations: 191.8 kB / 0.5107 GB, free: 4.215 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.3588, allocations: 63.91 kB / 0.5108 GB, free: 4.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3588, allocations: 0 / 0.5108 GB, free: 4.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003004/0.3591, allocations: 201.4 kB / 0.511 GB, free: 3.949 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3592, allocations: 11.94 kB / 0.511 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3592, allocations: 7.938 kB / 0.511 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3592, allocations: 7.984 kB / 0.511 GB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.3594, allocations: 39.92 kB / 0.511 GB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.3594, allocations: 4 kB / 0.511 GB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.3595, allocations: 8 kB / 0.511 GB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.3595, allocations: 19.98 kB / 0.5111 GB, free: 3.852 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001168/0.3597, allocations: 127.2 kB / 0.5112 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.3598, allocations: 129.2 kB / 0.5113 GB, free: 3.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.3601, allocations: 119.5 kB / 0.5114 GB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.3601, allocations: 4 kB / 0.5114 GB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3601, allocations: 0 / 0.5114 GB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3601, allocations: 4 kB / 0.5114 GB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.3603, allocations: 246 kB / 0.5117 GB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3603, allocations: 3.953 kB / 0.5117 GB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.3605, allocations: 35.98 kB / 0.5117 GB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.3605, allocations: 4 kB / 0.5117 GB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.3605, allocations: 3.984 kB / 0.5117 GB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.3605, allocations: 7.938 kB / 0.5117 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3605, allocations: 0 / 0.5117 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003171/0.3608, allocations: 253.8 kB / 0.512 GB, free: 2.832 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.361, allocations: 132.7 kB / 0.5121 GB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.287e-05/0.361, allocations: 3.984 kB / 0.5121 GB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.602e-05/0.3611, allocations: 4 kB / 0.5121 GB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.3612, allocations: 11.98 kB / 0.5121 GB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.3612, allocations: 8 kB / 0.5121 GB, free: 2.656 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3614, allocations: 234 kB / 0.5123 GB, free: 2.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3614, allocations: 96 / 0.5123 GB, free: 2.426 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003272/0.3618, allocations: 63.88 kB / 0.5124 GB, free: 2.363 MB / 362.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: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.0007639/0.3625, allocations: 375.2 kB / 0.5128 GB, free: 1.996 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002621/0.3628, allocations: 144.6 kB / 0.5129 GB, free: 1.855 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3628, allocations: 4.188 kB / 0.5129 GB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.57e-05/0.3629, allocations: 35.92 kB / 0.5129 GB, free: 1.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.3633, allocations: 106 kB / 0.513 GB, free: 1.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005644/0.3639, allocations: 343.8 kB / 0.5134 GB, free: 1.348 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.3642, allocations: 0.7758 MB / 0.5141 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.3643, allocations: 34.05 kB / 0.5141 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.203e-05/0.3644, allocations: 31.44 kB / 0.5142 GB, free: 492 kB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3644, allocations: 0 / 0.5142 GB, free: 492 kB / 362.7 MB Notification: Performance of Templates: time 0.1879/0.5523, allocations: 3.163 MB / 0.5173 GB, free: 88.35 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches