Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 205.6 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 226.5 MB / 245.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.00121, allocations: 96.66 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004691/0.0004689, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3641, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.5186, allocations: 82.79 MB / 492.2 MB, free: 8.711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003898/0.5191, allocations: 83.95 kB / 492.3 MB, free: 8.629 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03867/0.5578, allocations: 9.668 MB / 0.4902 GB, free: 14.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.5578, allocations: 0 / 0.4902 GB, free: 14.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.291e-05/0.5579, allocations: 4 kB / 0.4902 GB, free: 14.96 MB / 378.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.00133/0.5592, allocations: 0.551 MB / 0.4907 GB, free: 14.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.603e-05/0.5593, allocations: 12.03 kB / 0.4907 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.5595, allocations: 24.66 kB / 0.4907 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007645/0.5603, allocations: 298.7 kB / 0.491 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.5603, allocations: 8.375 kB / 0.491 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.5604, allocations: 12.38 kB / 0.491 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008822/0.5613, allocations: 295.2 kB / 0.4913 GB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.5613, allocations: 4.172 kB / 0.4913 GB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.5614, allocations: 7.938 kB / 0.4913 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.5614, allocations: 4 kB / 0.4913 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002669/0.5617, allocations: 63.91 kB / 0.4914 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009809/0.5627, allocations: 398.4 kB / 0.4918 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004907/0.5632, allocations: 180 kB / 0.4919 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.5634, allocations: 82.53 kB / 0.492 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.5635, allocations: 8 kB / 0.492 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002285/0.5637, allocations: 71.39 kB / 0.4921 GB, free: 12.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.277e-06/0.5637, allocations: 3.938 kB / 0.4921 GB, free: 12.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.000777/0.5645, allocations: 221.3 kB / 0.4923 GB, free: 12.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/0.5647, allocations: 156.4 kB / 0.4925 GB, free: 12.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.5653, allocations: 280.9 kB / 0.4927 GB, free: 12.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.5654, allocations: 29.7 kB / 0.4928 GB, free: 12.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.5655, allocations: 121 kB / 0.4929 GB, free: 11.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.045e-05/0.5656, allocations: 35.64 kB / 0.4929 GB, free: 11.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.5656, allocations: 8 kB / 0.4929 GB, free: 11.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002471/0.5659, allocations: 338.8 kB / 0.4932 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.566, allocations: 40.39 kB / 0.4933 GB, free: 11.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.5663, allocations: 174 kB / 0.4934 GB, free: 11.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/0.5667, allocations: 199.3 kB / 0.4936 GB, free: 10.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.5667, allocations: 0 / 0.4936 GB, free: 10.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005332/0.5672, allocations: 229 kB / 0.4939 GB, free: 10.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.5673, allocations: 8 kB / 0.4939 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.5673, allocations: 7.938 kB / 0.4939 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.953e-05/0.5673, allocations: 8.531 kB / 0.4939 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.5675, allocations: 19.92 kB / 0.4939 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.5675, allocations: 12 kB / 0.4939 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.5677, allocations: 15.91 kB / 0.4939 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.5677, allocations: 15.98 kB / 0.4939 GB, free: 10.67 MB / 378.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,sample1.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,sample1.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.0002427/0.568, allocations: 168.2 kB / 0.4941 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.5683, allocations: 129.6 kB / 0.4942 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003677/0.5686, allocations: 127.3 kB / 0.4943 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5687, allocations: 4 kB / 0.4943 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.5687, allocations: 3.984 kB / 0.4944 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.5687, allocations: 0 / 0.4944 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.5691, allocations: 249.5 kB / 0.4946 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.5691, allocations: 7.984 kB / 0.4946 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.127e-05/0.5691, allocations: 11.94 kB / 0.4946 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.5692, allocations: 4 kB / 0.4946 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.5692, allocations: 4 kB / 0.4946 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5692, allocations: 4 kB / 0.4946 GB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.5692, allocations: 3.984 kB / 0.4946 GB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.5698, allocations: 230.3 kB / 0.4948 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.57, allocations: 120.8 kB / 0.495 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.508e-05/0.5701, allocations: 4 kB / 0.495 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.5702, allocations: 11.98 kB / 0.495 GB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.5703, allocations: 11.88 kB / 0.495 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.5703, allocations: 19.98 kB / 0.495 GB, free: 9.461 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003387/0.5706, allocations: 200.5 kB / 0.4952 GB, free: 9.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5707, allocations: 0 / 0.4952 GB, free: 9.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005617/0.5712, allocations: 51.94 kB / 0.4952 GB, free: 9.219 MB / 378.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,sample1.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,sample1.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.001478/0.5727, allocations: 430.1 kB / 0.4957 GB, free: 8.938 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.5732, allocations: 151.7 kB / 0.4958 GB, free: 8.789 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5733, allocations: 0 / 0.4958 GB, free: 8.789 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.5734, allocations: 31.98 kB / 0.4958 GB, free: 8.758 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008091/0.5742, allocations: 114.8 kB / 0.4959 GB, free: 8.648 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.5753, allocations: 453.6 kB / 0.4964 GB, free: 8.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.5758, allocations: 0.7524 MB / 0.4971 GB, free: 7.395 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.5759, allocations: 42.3 kB / 0.4971 GB, free: 7.355 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.465e-05/0.576, allocations: 23.44 kB / 0.4972 GB, free: 7.332 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.576, allocations: 0 / 0.4972 GB, free: 7.332 MB / 378.7 MB Notification: Performance of Templates: time 0.0101/0.5861, allocations: 2.898 MB / 0.5 GB, free: 4.453 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches