Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001455/0.001455, allocations: 186.4 kB / 16.44 MB, free: 5.691 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.939/1.939, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.00115/0.001149, allocations: 84.48 kB / 270.9 MB, free: 8.383 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.1014/0.1014, allocations: 12.6 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005368/0.0005369, allocations: 19.98 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0849/0.08546, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4253/0.5109, allocations: 82.29 MB / 0.5123 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.5112, allocations: 84.86 kB / 0.5124 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03422/0.5455, allocations: 8.464 MB / 0.5207 GB, free: 7.473 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5455, allocations: 0 / 0.5207 GB, free: 7.473 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.5455, allocations: 4 kB / 0.5207 GB, free: 7.469 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.0007625/0.5463, allocations: 0.5282 MB / 0.5212 GB, free: 6.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.5464, allocations: 8.031 kB / 0.5212 GB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.453e-05/0.5464, allocations: 31.66 kB / 0.5213 GB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.5469, allocations: 279.1 kB / 0.5215 GB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.547, allocations: 6.812 kB / 0.5215 GB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.547, allocations: 15.27 kB / 0.5215 GB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006557/0.5477, allocations: 305.1 kB / 0.5218 GB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.5477, allocations: 0 / 0.5218 GB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.5477, allocations: 0 / 0.5218 GB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.5478, allocations: 4 kB / 0.5218 GB, free: 6.305 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.548, allocations: 63.22 kB / 0.5219 GB, free: 6.262 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.5486, allocations: 394.3 kB / 0.5223 GB, free: 5.875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.549, allocations: 171.3 kB / 0.5224 GB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.5491, allocations: 11.92 kB / 0.5224 GB, free: 5.707 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.5492, allocations: 85.17 kB / 0.5225 GB, free: 5.621 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.635e-06/0.5493, allocations: 0 / 0.5225 GB, free: 5.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006892/0.55, allocations: 226.5 kB / 0.5227 GB, free: 5.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.55, allocations: 143.5 kB / 0.5229 GB, free: 5.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.5504, allocations: 253.6 kB / 0.5231 GB, free: 5.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.5504, allocations: 29.02 kB / 0.5231 GB, free: 5.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.5505, allocations: 180.1 kB / 0.5233 GB, free: 4.875 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.5506, allocations: 26.14 kB / 0.5233 GB, free: 4.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.389e-05/0.5506, allocations: 9.75 kB / 0.5234 GB, free: 4.852 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.337e-05/0.5507, allocations: 322.2 kB / 0.5237 GB, free: 4.531 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.5508, allocations: 35.02 kB / 0.5237 GB, free: 4.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.551, allocations: 177.1 kB / 0.5239 GB, free: 4.289 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.5512, allocations: 66.39 kB / 0.5239 GB, free: 4.246 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.5512, allocations: 4 kB / 0.5239 GB, free: 4.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000445/0.5516, allocations: 209.5 kB / 0.5241 GB, free: 4.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.5517, allocations: 4 kB / 0.5241 GB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.5517, allocations: 8.031 kB / 0.5241 GB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.5517, allocations: 8 kB / 0.5241 GB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.5519, allocations: 27.61 kB / 0.5242 GB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.5519, allocations: 4 kB / 0.5242 GB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.5521, allocations: 15.67 kB / 0.5242 GB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.5521, allocations: 12 kB / 0.5242 GB, free: 4 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 () * 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.000168/0.5523, allocations: 187.8 kB / 0.5244 GB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002385/0.5525, allocations: 119.6 kB / 0.5245 GB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003267/0.5529, allocations: 123.7 kB / 0.5246 GB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.5529, allocations: 4 kB / 0.5246 GB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5529, allocations: 0 / 0.5246 GB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5529, allocations: 0 / 0.5246 GB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.5532, allocations: 254.1 kB / 0.5249 GB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.5532, allocations: 3.938 kB / 0.5249 GB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-05/0.5532, allocations: 15.92 kB / 0.5249 GB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.5533, allocations: 4 kB / 0.5249 GB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.5533, allocations: 6.625 kB / 0.5249 GB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.5533, allocations: 4 kB / 0.5249 GB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5533, allocations: 0 / 0.5249 GB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004866/0.5538, allocations: 256.8 kB / 0.5251 GB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.554, allocations: 126.8 kB / 0.5253 GB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.477e-05/0.554, allocations: 7.562 kB / 0.5253 GB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.5542, allocations: 11.48 kB / 0.5253 GB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.5542, allocations: 4 kB / 0.5253 GB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.5543, allocations: 15.45 kB / 0.5253 GB, free: 2.922 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002549/0.5545, allocations: 198.4 kB / 0.5255 GB, free: 2.758 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5545, allocations: 0 / 0.5255 GB, free: 2.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004321/0.555, allocations: 46.38 kB / 0.5255 GB, free: 2.719 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) * 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.001153/0.5561, allocations: 433.3 kB / 0.5259 GB, free: 2.305 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000487/0.5566, allocations: 145.2 kB / 0.5261 GB, free: 2.195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5567, allocations: 1.062 kB / 0.5261 GB, free: 2.195 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.5568, allocations: 34.55 kB / 0.5261 GB, free: 2.172 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.5574, allocations: 106 kB / 0.5262 GB, free: 2.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00085/0.5583, allocations: 468.4 kB / 0.5267 GB, free: 1.637 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.5585, allocations: 0.7594 MB / 0.5274 GB, free: 0.8555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.5586, allocations: 31.11 kB / 0.5274 GB, free: 0.8281 MB / 330.7 MB Notification: Performance of SimCode: time 6.81e-07/0.5586, allocations: 0 / 0.5274 GB, free: 0.8281 MB / 330.7 MB Notification: Performance of Templates: time 0.007708/0.5664, allocations: 3.217 MB / 0.5306 GB, free: 13.63 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches