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.001634/0.001634, allocations: 174.1 kB / 16.8 MB, free: 5.027 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.579/1.579, allocations: 205.4 MB / 223 MB, free: 9.023 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.00081/0.00081, allocations: 92.28 kB / 271.3 MB, free: 8.246 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.09448/0.09448, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004702/0.0004704, allocations: 19.98 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 50.36 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3735/0.4829, allocations: 82.35 MB / 0.5136 GB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003517/0.4833, allocations: 85.36 kB / 0.5137 GB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02166/0.505, allocations: 8.46 MB / 0.522 GB, free: 6.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.505, allocations: 4 kB / 0.522 GB, free: 6.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.942e-05/0.5051, allocations: 7.594 kB / 0.522 GB, free: 6.766 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.0008007/0.5059, allocations: 0.5216 MB / 0.5225 GB, free: 6.207 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.5059, allocations: 12.03 kB / 0.5225 GB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.506, allocations: 31.53 kB / 0.5225 GB, free: 6.168 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005716/0.5066, allocations: 291.6 kB / 0.5228 GB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.5067, allocations: 8.062 kB / 0.5228 GB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.5067, allocations: 15.94 kB / 0.5228 GB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007281/0.5075, allocations: 298.7 kB / 0.5231 GB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.5075, allocations: 192 / 0.5231 GB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.5076, allocations: 11.31 kB / 0.5231 GB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.5076, allocations: 0 / 0.5231 GB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.5078, allocations: 66.59 kB / 0.5232 GB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00064/0.5085, allocations: 390.5 kB / 0.5236 GB, free: 5.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.5088, allocations: 182.4 kB / 0.5237 GB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.5089, allocations: 79.86 kB / 0.5238 GB, free: 4.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.5089, allocations: 15.34 kB / 0.5238 GB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001514/0.5091, allocations: 73.73 kB / 0.5239 GB, free: 4.844 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.046e-06/0.5091, allocations: 4 kB / 0.5239 GB, free: 4.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005627/0.5097, allocations: 228.1 kB / 0.5241 GB, free: 4.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.05e-05/0.5098, allocations: 150.9 kB / 0.5243 GB, free: 4.488 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.5101, allocations: 273.2 kB / 0.5245 GB, free: 4.258 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.5101, allocations: 29.2 kB / 0.5245 GB, free: 4.227 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.163e-05/0.5102, allocations: 120.3 kB / 0.5247 GB, free: 4.125 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.509e-05/0.5102, allocations: 33.33 kB / 0.5247 GB, free: 4.102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-06/0.5102, allocations: 3.312 kB / 0.5247 GB, free: 4.102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5104, allocations: 341.4 kB / 0.525 GB, free: 3.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.417e-05/0.5105, allocations: 35.14 kB / 0.5251 GB, free: 3.742 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.5106, allocations: 174.2 kB / 0.5252 GB, free: 3.531 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.5108, allocations: 203.9 kB / 0.5254 GB, free: 3.312 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5108, allocations: 4 kB / 0.5254 GB, free: 3.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003327/0.5112, allocations: 225.2 kB / 0.5256 GB, free: 3.121 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.5112, allocations: 8 kB / 0.5256 GB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.5112, allocations: 4 kB / 0.5256 GB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.5113, allocations: 4 kB / 0.5256 GB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-05/0.5114, allocations: 28.39 kB / 0.5257 GB, free: 3.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.5114, allocations: 4 kB / 0.5257 GB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.5116, allocations: 18.25 kB / 0.5257 GB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.5116, allocations: 12 kB / 0.5257 GB, free: 3.051 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.0001728/0.5118, allocations: 175 kB / 0.5259 GB, free: 2.887 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.5119, allocations: 126.8 kB / 0.526 GB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/0.5122, allocations: 116.9 kB / 0.5261 GB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.5122, allocations: 4 kB / 0.5261 GB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.5122, allocations: 4 kB / 0.5261 GB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.5122, allocations: 7.984 kB / 0.5261 GB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.5124, allocations: 248.4 kB / 0.5264 GB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5124, allocations: 4 kB / 0.5264 GB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.404e-05/0.5125, allocations: 15.19 kB / 0.5264 GB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.5125, allocations: 0 / 0.5264 GB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.5125, allocations: 11.42 kB / 0.5264 GB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5125, allocations: 0 / 0.5264 GB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5125, allocations: 0 / 0.5264 GB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.5128, allocations: 233.8 kB / 0.5266 GB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.5129, allocations: 123.2 kB / 0.5267 GB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.513, allocations: 7.875 kB / 0.5267 GB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.5131, allocations: 11.31 kB / 0.5267 GB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.5131, allocations: 7.984 kB / 0.5268 GB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.5132, allocations: 11.94 kB / 0.5268 GB, free: 2.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001733/0.5133, allocations: 201 kB / 0.527 GB, free: 1.855 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5133, allocations: 0 / 0.527 GB, free: 1.855 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003483/0.5137, allocations: 53.62 kB / 0.527 GB, free: 1.812 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.0009263/0.5146, allocations: 423.2 kB / 0.5274 GB, free: 1.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003481/0.515, allocations: 151.8 kB / 0.5276 GB, free: 1.289 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.515, allocations: 3.938 kB / 0.5276 GB, free: 1.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.323e-05/0.5151, allocations: 31.17 kB / 0.5276 GB, free: 1.262 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.5156, allocations: 113.6 kB / 0.5277 GB, free: 1.176 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006863/0.5163, allocations: 443.6 kB / 0.5281 GB, free: 0.7539 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.5166, allocations: 0.7549 MB / 0.5289 GB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.5167, allocations: 33.92 kB / 0.5289 GB, free: 15.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.317e-05/0.5168, allocations: 23.44 kB / 0.5289 GB, free: 15.92 MB / 346.7 MB Notification: Performance of SimCode: time 6.92e-07/0.5168, allocations: 0 / 0.5289 GB, free: 15.92 MB / 346.7 MB Notification: Performance of Templates: time 0.007294/0.5241, allocations: 2.875 MB / 0.5317 GB, free: 13.06 MB / 346.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/jenkins1/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