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.001573/0.001572, allocations: 177.8 kB / 8.403 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.3 MB / 214.1 MB, free: 1.668 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.001112/0.001112, allocations: 87.95 kB / 262.1 MB, free: 1.613 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.09821/0.09821, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.764e-05/2.784e-05, allocations: 4 kB / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3007, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1389/0.4396, allocations: 81.55 MB / 0.4989 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.44, allocations: 83.94 kB / 0.4989 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03828/0.4783, allocations: 8.366 MB / 0.5071 GB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4784, allocations: 0 / 0.5071 GB, free: 8.309 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.4784, allocations: 4 kB / 0.5071 GB, free: 8.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.0008385/0.4793, allocations: 0.4955 MB / 0.5076 GB, free: 7.758 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.4793, allocations: 12.03 kB / 0.5076 GB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.4794, allocations: 23.72 kB / 0.5076 GB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006107/0.48, allocations: 277.6 kB / 0.5079 GB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.4801, allocations: 4 kB / 0.5079 GB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.4801, allocations: 11.95 kB / 0.5079 GB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002365/0.4804, allocations: 71.97 kB / 0.508 GB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006718/0.4811, allocations: 260.9 kB / 0.5082 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.4811, allocations: 0 / 0.5082 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.4811, allocations: 7.938 kB / 0.5082 GB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.4812, allocations: 8 kB / 0.5082 GB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000693/0.4819, allocations: 354.9 kB / 0.5086 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.4822, allocations: 160 kB / 0.5087 GB, free: 6.457 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.4824, allocations: 74.64 kB / 0.5088 GB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.4825, allocations: 7.984 kB / 0.5088 GB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.4827, allocations: 79.23 kB / 0.5089 GB, free: 6.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.906e-06/0.4827, allocations: 4 kB / 0.5089 GB, free: 6.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004829/0.4832, allocations: 153.6 kB / 0.509 GB, free: 6.117 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.4833, allocations: 140.4 kB / 0.5092 GB, free: 5.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.4837, allocations: 232.5 kB / 0.5094 GB, free: 5.719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.4838, allocations: 29.7 kB / 0.5094 GB, free: 5.684 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.4839, allocations: 179 kB / 0.5096 GB, free: 5.504 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/0.484, allocations: 31.7 kB / 0.5096 GB, free: 5.473 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.484, allocations: 0 / 0.5096 GB, free: 5.473 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4841, allocations: 322.8 kB / 0.5099 GB, free: 5.148 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.321e-05/0.4842, allocations: 32.45 kB / 0.51 GB, free: 5.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.4844, allocations: 159 kB / 0.5101 GB, free: 4.898 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.4846, allocations: 55.95 kB / 0.5102 GB, free: 4.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.4846, allocations: 0 / 0.5102 GB, free: 4.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004213/0.4851, allocations: 177.2 kB / 0.5103 GB, free: 4.664 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4851, allocations: 8 kB / 0.5103 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.4851, allocations: 7.984 kB / 0.5103 GB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.4851, allocations: 8 kB / 0.5104 GB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.4853, allocations: 24.45 kB / 0.5104 GB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.4853, allocations: 8 kB / 0.5104 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.4855, allocations: 19.92 kB / 0.5104 GB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.4856, allocations: 8 kB / 0.5104 GB, free: 4.582 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.0001378/0.4857, allocations: 123.1 kB / 0.5105 GB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.486, allocations: 113.3 kB / 0.5106 GB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.4863, allocations: 115.7 kB / 0.5107 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.4863, allocations: 4 kB / 0.5108 GB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4863, allocations: 8.188 kB / 0.5108 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.4863, allocations: 3.984 kB / 0.5108 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.4866, allocations: 218 kB / 0.511 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4866, allocations: 0 / 0.511 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.462e-05/0.4867, allocations: 19.86 kB / 0.511 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.4867, allocations: 0 / 0.511 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.4868, allocations: 8 kB / 0.511 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4868, allocations: 0 / 0.511 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.4868, allocations: 4 kB / 0.511 GB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004483/0.4873, allocations: 233.8 kB / 0.5112 GB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.4875, allocations: 124.7 kB / 0.5113 GB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.65e-05/0.4875, allocations: 8 kB / 0.5114 GB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.4877, allocations: 4 kB / 0.5114 GB, free: 3.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.4877, allocations: 7.984 kB / 0.5114 GB, free: 3.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.4878, allocations: 8 kB / 0.5114 GB, free: 3.492 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000267/0.488, allocations: 192.4 kB / 0.5116 GB, free: 3.301 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4881, allocations: 0 / 0.5116 GB, free: 3.301 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000489/0.4886, allocations: 40 kB / 0.5116 GB, free: 3.262 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.001109/0.4897, allocations: 363.6 kB / 0.5119 GB, free: 2.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004222/0.4901, allocations: 123.8 kB / 0.5121 GB, free: 2.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4901, allocations: 0 / 0.5121 GB, free: 2.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.38e-05/0.4902, allocations: 27.92 kB / 0.5121 GB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006548/0.4909, allocations: 104.1 kB / 0.5122 GB, free: 2.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008735/0.4918, allocations: 317.7 kB / 0.5125 GB, free: 2.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004617/0.4923, allocations: 0.7597 MB / 0.5132 GB, free: 1.527 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.4924, allocations: 31.42 kB / 0.5133 GB, free: 1.496 MB / 362.7 MB Notification: Performance of SimCode: time 2.976e-06/0.4924, allocations: 0 / 0.5133 GB, free: 1.496 MB / 362.7 MB Notification: Performance of Templates: time 0.2767/0.7692, allocations: 3.181 MB / 0.5164 GB, free: 88.61 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