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.00124/0.00124, allocations: 179.2 kB / 15.8 MB, free: 6.34 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.563/1.563, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008898/0.0008898, allocations: 82.89 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08612/0.08612, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003961/0.0003961, allocations: 17.09 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1196/0.2307, allocations: 82.3 MB / 0.5124 GB, free: 8.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.2311, allocations: 79.95 kB / 0.5124 GB, free: 8.453 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2874/0.5185, allocations: 8.458 MB / 0.5207 GB, free: 84.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.889e-06/0.5185, allocations: 0 / 0.5207 GB, free: 84.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.096e-05/0.5186, allocations: 6.594 kB / 0.5207 GB, free: 84.65 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.001088/0.5197, allocations: 0.5288 MB / 0.5212 GB, free: 84.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.5198, allocations: 9.938 kB / 0.5212 GB, free: 84.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.637e-05/0.5199, allocations: 25.84 kB / 0.5213 GB, free: 84.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004551/0.5204, allocations: 274.9 kB / 0.5215 GB, free: 84.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.5204, allocations: 14.59 kB / 0.5215 GB, free: 84.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.5204, allocations: 18.83 kB / 0.5216 GB, free: 84.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.521, allocations: 299.2 kB / 0.5218 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.5211, allocations: 0.9375 kB / 0.5218 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.5211, allocations: 9.141 kB / 0.5218 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.5211, allocations: 3.25 kB / 0.5218 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.5213, allocations: 58.91 kB / 0.5219 GB, free: 83.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005598/0.5218, allocations: 395.3 kB / 0.5223 GB, free: 83.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.5222, allocations: 175.9 kB / 0.5225 GB, free: 83.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.5222, allocations: 6.703 kB / 0.5225 GB, free: 83.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.5224, allocations: 80.59 kB / 0.5225 GB, free: 83.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.934e-06/0.5224, allocations: 0 / 0.5225 GB, free: 83.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005112/0.523, allocations: 223.1 kB / 0.5227 GB, free: 83.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.028e-05/0.523, allocations: 156.3 kB / 0.5229 GB, free: 83.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.5233, allocations: 240.5 kB / 0.5231 GB, free: 83.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.5234, allocations: 32.45 kB / 0.5232 GB, free: 83.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.814e-05/0.5235, allocations: 119.7 kB / 0.5233 GB, free: 83.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.881e-05/0.5235, allocations: 36.45 kB / 0.5233 GB, free: 83.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.318e-06/0.5235, allocations: 4.406 kB / 0.5233 GB, free: 83.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.5237, allocations: 340.8 kB / 0.5236 GB, free: 82.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.5238, allocations: 37.34 kB / 0.5237 GB, free: 82.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.524, allocations: 172.4 kB / 0.5238 GB, free: 82.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.5241, allocations: 65.14 kB / 0.5239 GB, free: 82.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5242, allocations: 0 / 0.5239 GB, free: 82.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004012/0.5246, allocations: 225.6 kB / 0.5241 GB, free: 82.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.5246, allocations: 5.812 kB / 0.5241 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.5246, allocations: 6.109 kB / 0.5241 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.5246, allocations: 5.969 kB / 0.5241 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.5248, allocations: 25.11 kB / 0.5242 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/0.5248, allocations: 12.92 kB / 0.5242 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.5249, allocations: 23.92 kB / 0.5242 GB, free: 82.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.5249, allocations: 12.22 kB / 0.5242 GB, free: 82.53 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.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 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * 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.0001695/0.5251, allocations: 168.1 kB / 0.5244 GB, free: 82.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.5253, allocations: 125.9 kB / 0.5245 GB, free: 82.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002906/0.5256, allocations: 121 kB / 0.5246 GB, free: 82.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.5256, allocations: 6.938 kB / 0.5246 GB, free: 82.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.5257, allocations: 6.344 kB / 0.5246 GB, free: 82.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.5257, allocations: 1.406 kB / 0.5246 GB, free: 82.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/0.5259, allocations: 254.4 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.526, allocations: 1.438 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.642e-05/0.526, allocations: 14.45 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.526, allocations: 2.969 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.526, allocations: 3.156 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.526, allocations: 2.094 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5261, allocations: 2.688 kB / 0.5249 GB, free: 82.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.5264, allocations: 258.8 kB / 0.5251 GB, free: 81.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.5266, allocations: 120.5 kB / 0.5252 GB, free: 81.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.5266, allocations: 10.06 kB / 0.5252 GB, free: 81.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.474e-05/0.5267, allocations: 6.031 kB / 0.5253 GB, free: 81.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.5268, allocations: 9.656 kB / 0.5253 GB, free: 81.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.5268, allocations: 15.77 kB / 0.5253 GB, free: 81.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002154/0.527, allocations: 195.9 kB / 0.5255 GB, free: 81.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5271, allocations: 3.938 kB / 0.5255 GB, free: 81.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003437/0.5274, allocations: 50.89 kB / 0.5255 GB, free: 81.77 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,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) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * 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.001026/0.5284, allocations: 433.5 kB / 0.5259 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003952/0.5288, allocations: 144.1 kB / 0.5261 GB, free: 81.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5289, allocations: 3.062 kB / 0.5261 GB, free: 81.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.184e-05/0.529, allocations: 34.17 kB / 0.5261 GB, free: 81.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.5295, allocations: 112.2 kB / 0.5262 GB, free: 81.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008474/0.5303, allocations: 442.8 kB / 0.5266 GB, free: 81.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.5307, allocations: 0.7584 MB / 0.5274 GB, free: 80.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.5308, allocations: 29.06 kB / 0.5274 GB, free: 80.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.99e-05/0.5309, allocations: 26.19 kB / 0.5274 GB, free: 80.46 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5309, allocations: 0 / 0.5274 GB, free: 80.46 MB / 362.7 MB Notification: Performance of Templates: time 0.008628/0.5395, allocations: 2.839 MB / 0.5302 GB, free: 80.21 MB / 362.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