Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, 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.464/1.464, allocations: 205.2 MB / 219 MB, free: 9.203 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.0007943/0.0007939, allocations: 90.61 kB / 267.1 MB, free: 9.273 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.08817/0.08817, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.715e-05, allocations: 8 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08113/0.08118, allocations: 50.38 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3259/0.4071, allocations: 82.21 MB / 0.5064 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.4074, allocations: 82.95 kB / 0.5065 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02061/0.428, allocations: 8.433 MB / 0.5147 GB, free: 8.707 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.428, allocations: 0 / 0.5147 GB, free: 8.707 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.4281, allocations: 3.844 kB / 0.5147 GB, free: 8.707 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005444/0.4286, allocations: 0.4984 MB / 0.5152 GB, free: 8.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.4287, allocations: 11.69 kB / 0.5152 GB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.983e-05/0.4287, allocations: 27.09 kB / 0.5153 GB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.4291, allocations: 277.5 kB / 0.5155 GB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.4291, allocations: 7.469 kB / 0.5155 GB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.4292, allocations: 19.53 kB / 0.5156 GB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.4296, allocations: 293.4 kB / 0.5158 GB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4296, allocations: 3.938 kB / 0.5158 GB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.4296, allocations: 3.875 kB / 0.5158 GB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4297, allocations: 7.844 kB / 0.5159 GB, free: 7.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.4298, allocations: 60.45 kB / 0.5159 GB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.4302, allocations: 394.7 kB / 0.5163 GB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.4305, allocations: 166.5 kB / 0.5164 GB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.4306, allocations: 82.02 kB / 0.5165 GB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.4306, allocations: 7.734 kB / 0.5165 GB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001198/0.4308, allocations: 85.11 kB / 0.5166 GB, free: 7.301 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.4308, allocations: 0 / 0.5166 GB, free: 7.301 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003368/0.4311, allocations: 161.7 kB / 0.5168 GB, free: 7.246 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.4312, allocations: 151.3 kB / 0.5169 GB, free: 7.082 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.4315, allocations: 243.8 kB / 0.5171 GB, free: 6.969 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.4315, allocations: 29.14 kB / 0.5172 GB, free: 6.938 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.761e-05/0.4315, allocations: 121.1 kB / 0.5173 GB, free: 6.844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.4316, allocations: 38.27 kB / 0.5173 GB, free: 6.824 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/0.4316, allocations: 3.812 kB / 0.5173 GB, free: 6.824 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.023e-05/0.4316, allocations: 340.5 kB / 0.5177 GB, free: 6.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.39e-05/0.4317, allocations: 34.62 kB / 0.5177 GB, free: 6.496 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.953e-05/0.4318, allocations: 158.3 kB / 0.5178 GB, free: 6.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.758e-05/0.4319, allocations: 67.78 kB / 0.5179 GB, free: 6.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4319, allocations: 3.875 kB / 0.5179 GB, free: 6.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002373/0.4321, allocations: 208.5 kB / 0.5181 GB, free: 6.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.4322, allocations: 7.781 kB / 0.5181 GB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.4322, allocations: 7.781 kB / 0.5181 GB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.4322, allocations: 11.72 kB / 0.5181 GB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.545e-05/0.4323, allocations: 23.23 kB / 0.5181 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.4323, allocations: 3.969 kB / 0.5182 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.4324, allocations: 21.97 kB / 0.5182 GB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.4324, allocations: 15.55 kB / 0.5182 GB, free: 6.203 MB / 330.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.table1.combiTimeTable.nextTimeEvent,sample.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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 7.48e-05/0.4325, allocations: 136.8 kB / 0.5183 GB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.4327, allocations: 119.4 kB / 0.5184 GB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.4328, allocations: 122.1 kB / 0.5186 GB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4329, allocations: 4.109 kB / 0.5186 GB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4329, allocations: 7.688 kB / 0.5186 GB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.4329, allocations: 3.984 kB / 0.5186 GB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.433, allocations: 257.7 kB / 0.5188 GB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4331, allocations: 0 / 0.5188 GB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.365e-05/0.4331, allocations: 11.59 kB / 0.5188 GB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4331, allocations: 7.891 kB / 0.5188 GB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.4331, allocations: 7.5 kB / 0.5188 GB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.4331, allocations: 3.938 kB / 0.5188 GB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4331, allocations: 0 / 0.5188 GB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.4334, allocations: 243.7 kB / 0.5191 GB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.649e-05/0.4335, allocations: 126.2 kB / 0.5192 GB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.4335, allocations: 6.875 kB / 0.5192 GB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-05/0.4336, allocations: 15.17 kB / 0.5192 GB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.4337, allocations: 11.7 kB / 0.5192 GB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.4337, allocations: 10.83 kB / 0.5192 GB, free: 5.438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000141/0.4338, allocations: 192.5 kB / 0.5194 GB, free: 5.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4338, allocations: 0 / 0.5194 GB, free: 5.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.4341, allocations: 44.19 kB / 0.5195 GB, free: 5.344 MB / 330.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,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.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.0007927/0.4349, allocations: 402.6 kB / 0.5198 GB, free: 4.992 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002284/0.4352, allocations: 129.5 kB / 0.52 GB, free: 4.895 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4352, allocations: 0 / 0.52 GB, free: 4.895 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.859e-05/0.4352, allocations: 31.56 kB / 0.52 GB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.4356, allocations: 100.6 kB / 0.5201 GB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004372/0.436, allocations: 303.7 kB / 0.5204 GB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001802/0.4362, allocations: 0.7549 MB / 0.5211 GB, free: 3.734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.982e-05/0.4363, allocations: 34.44 kB / 0.5212 GB, free: 3.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.4364, allocations: 26.62 kB / 0.5212 GB, free: 3.676 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4364, allocations: 0 / 0.5212 GB, free: 3.676 MB / 330.7 MB Notification: Performance of Templates: time 0.005106/0.4415, allocations: 2.854 MB / 0.524 GB, free: 0.8438 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches