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.001053/0.001053, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.3 MB / 213.8 MB, free: 1.734 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.0008146/0.0008146, allocations: 86.2 kB / 261.8 MB, free: 1.68 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.06815/0.06815, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.023e-05/2.028e-05, allocations: 4 kB / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2159, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09516/0.3111, allocations: 81.54 MB / 0.4989 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.3113, allocations: 83.95 kB / 0.499 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02187/0.3332, allocations: 8.37 MB / 0.5071 GB, free: 8.238 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3332, allocations: 0 / 0.5071 GB, free: 8.238 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.3333, allocations: 7.984 kB / 0.5071 GB, free: 8.23 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.0005486/0.3338, allocations: 0.4955 MB / 0.5076 GB, free: 7.684 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3339, allocations: 12.03 kB / 0.5076 GB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.475e-05/0.3339, allocations: 23.72 kB / 0.5077 GB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.3343, allocations: 277.6 kB / 0.5079 GB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.3343, allocations: 4 kB / 0.5079 GB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.3344, allocations: 11.95 kB / 0.5079 GB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00015/0.3345, allocations: 67.97 kB / 0.508 GB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003954/0.3349, allocations: 260.9 kB / 0.5082 GB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3349, allocations: 0 / 0.5082 GB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.335, allocations: 3.938 kB / 0.5083 GB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.335, allocations: 8 kB / 0.5083 GB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004061/0.3354, allocations: 362.9 kB / 0.5086 GB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.3356, allocations: 156 kB / 0.5088 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.3357, allocations: 74.69 kB / 0.5088 GB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.3357, allocations: 4 kB / 0.5088 GB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001083/0.3359, allocations: 83.23 kB / 0.5089 GB, free: 6.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.3359, allocations: 0 / 0.5089 GB, free: 6.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002788/0.3362, allocations: 157.3 kB / 0.5091 GB, free: 6.047 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.3362, allocations: 136.4 kB / 0.5092 GB, free: 5.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.3365, allocations: 236.5 kB / 0.5094 GB, free: 5.648 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.3365, allocations: 29.7 kB / 0.5094 GB, free: 5.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.3366, allocations: 120.8 kB / 0.5096 GB, free: 5.488 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.3366, allocations: 31.69 kB / 0.5096 GB, free: 5.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/0.3366, allocations: 4 kB / 0.5096 GB, free: 5.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3368, allocations: 338.8 kB / 0.5099 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.178e-05/0.3368, allocations: 28.47 kB / 0.5099 GB, free: 5.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.337, allocations: 159 kB / 0.5101 GB, free: 4.867 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.141e-05/0.3371, allocations: 55.94 kB / 0.5101 GB, free: 4.812 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3371, allocations: 0 / 0.5101 GB, free: 4.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002581/0.3373, allocations: 197.2 kB / 0.5103 GB, free: 4.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.3374, allocations: 8 kB / 0.5103 GB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3374, allocations: 4 kB / 0.5103 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.3374, allocations: 4.531 kB / 0.5104 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.246e-05/0.3375, allocations: 23.92 kB / 0.5104 GB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.3375, allocations: 8 kB / 0.5104 GB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.917e-05/0.3376, allocations: 15.84 kB / 0.5104 GB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.3376, allocations: 16 kB / 0.5104 GB, free: 4.535 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 8.271e-05/0.3377, allocations: 123.1 kB / 0.5105 GB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3379, allocations: 109.3 kB / 0.5106 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.338, allocations: 111.4 kB / 0.5107 GB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-06/0.3381, allocations: 4 kB / 0.5107 GB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3381, allocations: 4 kB / 0.5107 GB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3381, allocations: 0 / 0.5107 GB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.3382, allocations: 226 kB / 0.511 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3383, allocations: 4 kB / 0.511 GB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.433e-05/0.3383, allocations: 11.88 kB / 0.511 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3383, allocations: 8.172 kB / 0.511 GB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.3383, allocations: 0 / 0.511 GB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3383, allocations: 8.172 kB / 0.511 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3383, allocations: 0 / 0.511 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002489/0.3386, allocations: 237.8 kB / 0.5112 GB, free: 3.617 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.877e-05/0.3387, allocations: 128.7 kB / 0.5113 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.3388, allocations: 0 / 0.5113 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.187e-05/0.3388, allocations: 7.984 kB / 0.5113 GB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.3389, allocations: 8 kB / 0.5114 GB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.3389, allocations: 15.98 kB / 0.5114 GB, free: 3.441 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001561/0.3391, allocations: 184.5 kB / 0.5115 GB, free: 3.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3391, allocations: 3.938 kB / 0.5116 GB, free: 3.254 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002855/0.3394, allocations: 40 kB / 0.5116 GB, free: 3.215 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.0007122/0.3401, allocations: 351.2 kB / 0.5119 GB, free: 2.871 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.3403, allocations: 123.8 kB / 0.512 GB, free: 2.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3403, allocations: 0 / 0.512 GB, free: 2.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.134e-05/0.3404, allocations: 27.94 kB / 0.5121 GB, free: 2.723 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.3408, allocations: 109.1 kB / 0.5122 GB, free: 2.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004605/0.3413, allocations: 278.9 kB / 0.5124 GB, free: 2.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3416, allocations: 0.7597 MB / 0.5132 GB, free: 1.527 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.296e-05/0.3417, allocations: 38.17 kB / 0.5132 GB, free: 1.492 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.3417, allocations: 27.44 kB / 0.5132 GB, free: 1.465 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3417, allocations: 3.938 kB / 0.5132 GB, free: 1.461 MB / 362.7 MB Notification: Performance of Templates: time 0.171/0.5127, allocations: 2.689 MB / 0.5159 GB, free: 88.88 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