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.002714/0.002714, allocations: 186.8 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.098/2.098, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00116/0.00116, allocations: 78.72 kB / 267.5 MB, free: 14.12 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.1095/0.1095, allocations: 12.59 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.152e-05/4.163e-05, allocations: 0 / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3047, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.4476, allocations: 82.21 MB / 0.5064 GB, free: 11.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.4479, allocations: 79.95 kB / 0.5065 GB, free: 11.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03791/0.4858, allocations: 8.43 MB / 0.5147 GB, free: 3.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4859, allocations: 0 / 0.5147 GB, free: 3.309 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.4859, allocations: 4 kB / 0.5147 GB, free: 3.305 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.0008613/0.4868, allocations: 0.5111 MB / 0.5152 GB, free: 2.742 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4869, allocations: 8.031 kB / 0.5152 GB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.736e-05/0.487, allocations: 23.72 kB / 0.5152 GB, free: 2.711 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000605/0.4876, allocations: 277.6 kB / 0.5155 GB, free: 2.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.4876, allocations: 12 kB / 0.5155 GB, free: 2.387 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.4877, allocations: 15.89 kB / 0.5155 GB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007243/0.4884, allocations: 290.3 kB / 0.5158 GB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4884, allocations: 0 / 0.5158 GB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.4885, allocations: 4 kB / 0.5158 GB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.4885, allocations: 11.92 kB / 0.5158 GB, free: 2.047 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.4887, allocations: 63.92 kB / 0.5159 GB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007767/0.4895, allocations: 386.4 kB / 0.5163 GB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004456/0.49, allocations: 172 kB / 0.5164 GB, free: 1.355 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.4902, allocations: 82.64 kB / 0.5165 GB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.4902, allocations: 0 / 0.5165 GB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001887/0.4904, allocations: 83.3 kB / 0.5166 GB, free: 1.172 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.375e-06/0.4905, allocations: 0 / 0.5166 GB, free: 1.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005472/0.491, allocations: 169.3 kB / 0.5167 GB, free: 1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.4911, allocations: 144.7 kB / 0.5169 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000462/0.4916, allocations: 241.1 kB / 0.5171 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.4917, allocations: 33.7 kB / 0.5171 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.4918, allocations: 187 kB / 0.5173 GB, free: 368 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.4919, allocations: 27.7 kB / 0.5173 GB, free: 340 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.284e-05/0.4919, allocations: 4 kB / 0.5173 GB, free: 336 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4921, allocations: 322.8 kB / 0.5177 GB, free: 4 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2749/0.767, allocations: 31.7 kB / 0.5177 GB, free: 86.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.7673, allocations: 168.1 kB / 0.5178 GB, free: 86.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.7674, allocations: 61.09 kB / 0.5179 GB, free: 86.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.7675, allocations: 1.062 kB / 0.5179 GB, free: 86.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005054/0.768, allocations: 209.1 kB / 0.5181 GB, free: 86.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.768, allocations: 7.531 kB / 0.5181 GB, free: 86.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.768, allocations: 3.812 kB / 0.5181 GB, free: 86.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/0.7681, allocations: 6.5 kB / 0.5181 GB, free: 86.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.7683, allocations: 27.95 kB / 0.5181 GB, free: 86.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.7683, allocations: 8.797 kB / 0.5182 GB, free: 86.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.7685, allocations: 18.03 kB / 0.5182 GB, free: 86.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.7686, allocations: 15.25 kB / 0.5182 GB, free: 86.19 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 () * 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.0001323/0.7687, allocations: 135.2 kB / 0.5183 GB, free: 86.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002826/0.769, allocations: 118.6 kB / 0.5184 GB, free: 86.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003471/0.7694, allocations: 119.2 kB / 0.5185 GB, free: 86.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.7694, allocations: 3.75 kB / 0.5185 GB, free: 86.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.7694, allocations: 5.078 kB / 0.5186 GB, free: 86.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.7694, allocations: 1.266 kB / 0.5186 GB, free: 86.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003284/0.7698, allocations: 251.5 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.7698, allocations: 4.625 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.632e-05/0.7699, allocations: 16.64 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.7699, allocations: 2.281 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.7699, allocations: 10.06 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.77, allocations: 1.5 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.77, allocations: 8.75 kB / 0.5188 GB, free: 85.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/0.7704, allocations: 246.5 kB / 0.5191 GB, free: 85.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.7706, allocations: 125.7 kB / 0.5192 GB, free: 85.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.7707, allocations: 11.55 kB / 0.5192 GB, free: 85.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.7708, allocations: 8.672 kB / 0.5192 GB, free: 85.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.7709, allocations: 6.109 kB / 0.5192 GB, free: 85.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.7709, allocations: 10.36 kB / 0.5192 GB, free: 85.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002882/0.7712, allocations: 197.4 kB / 0.5194 GB, free: 85.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7712, allocations: 0 / 0.5194 GB, free: 85.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004567/0.7717, allocations: 54.22 kB / 0.5195 GB, free: 85.52 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) * 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.001056/0.7728, allocations: 391.5 kB / 0.5198 GB, free: 85.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004353/0.7732, allocations: 140.9 kB / 0.52 GB, free: 85.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.7732, allocations: 1.062 kB / 0.52 GB, free: 85.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.703e-05/0.7733, allocations: 28.31 kB / 0.52 GB, free: 85.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.774, allocations: 97.81 kB / 0.5201 GB, free: 85.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007725/0.7748, allocations: 328 kB / 0.5204 GB, free: 85.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.7751, allocations: 0.7588 MB / 0.5211 GB, free: 84.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.313e-05/0.7752, allocations: 24.11 kB / 0.5212 GB, free: 84.38 MB / 362.7 MB Notification: Performance of SimCode: time 7.81e-07/0.7752, allocations: 1.156 kB / 0.5212 GB, free: 84.38 MB / 362.7 MB Notification: Performance of Templates: time 0.008918/0.7841, allocations: 3.222 MB / 0.5243 GB, free: 84.08 MB / 362.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