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.0009641/0.0009642, allocations: 173.3 kB / 16.76 MB, free: 4.938 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.307/1.307, allocations: 205 MB / 222.5 MB, free: 9.066 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.001006/0.001006, allocations: 100.2 kB / 270.5 MB, free: 8.656 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.07998/0.07998, allocations: 12.58 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003625, allocations: 16 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07208/0.07246, allocations: 49.98 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.001959/0.07445, allocations: 1.696 MB / 443.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.0758, allocations: 1.018 MB / 444.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.07596, allocations: 7.938 kB / 444.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005203/0.07649, allocations: 131.7 kB / 444.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.07674, allocations: 107.6 kB / 444.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005596/0.07731, allocations: 203.6 kB / 444.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.07753, allocations: 211.5 kB / 445 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.07765, allocations: 44.55 kB / 445.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.07776, allocations: 75.58 kB / 445.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.07787, allocations: 91.53 kB / 445.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.07791, allocations: 12 kB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.07803, allocations: 43.92 kB / 445.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.06e-05/0.0781, allocations: 47.83 kB / 445.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.622e-05/0.07817, allocations: 75.41 kB / 445.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.07837, allocations: 179.6 kB / 445.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.07838, allocations: 0 / 445.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.07839, allocations: 0 / 445.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.0784, allocations: 0 / 445.6 MB, free: 12.45 MB / 298.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.0005865/0.07899, allocations: 0.5157 MB / 446.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.07903, allocations: 8.031 kB / 446.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.703e-05/0.0791, allocations: 24.66 kB / 446.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.07938, allocations: 278.7 kB / 446.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.07941, allocations: 16.36 kB / 446.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.07944, allocations: 16.12 kB / 446.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.07987, allocations: 306.1 kB / 446.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.07989, allocations: 0 / 446.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.07992, allocations: 8 kB / 446.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.07993, allocations: 4 kB / 446.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.08006, allocations: 59.91 kB / 446.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.08046, allocations: 386.3 kB / 447.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.08073, allocations: 175.8 kB / 447.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.08085, allocations: 86.67 kB / 447.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.08088, allocations: 12.05 kB / 447.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001298/0.08102, allocations: 71.39 kB / 447.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.734e-06/0.08103, allocations: 0 / 447.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004247/0.08146, allocations: 229.2 kB / 447.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.08152, allocations: 140.5 kB / 447.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.08174, allocations: 272.9 kB / 448.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.08176, allocations: 37.64 kB / 448.2 MB, free: 9.574 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.08182, allocations: 120.7 kB / 448.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.08185, allocations: 31.62 kB / 448.4 MB, free: 9.422 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.08189, allocations: 33.7 kB / 448.4 MB, free: 9.383 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.12e-05/0.08195, allocations: 338.8 kB / 448.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.511e-05/0.08203, allocations: 36.45 kB / 448.8 MB, free: 9.008 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.08214, allocations: 166.1 kB / 448.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.08233, allocations: 203.2 kB / 449.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.08234, allocations: 4 kB / 449.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002838/0.08263, allocations: 221 kB / 449.3 MB, free: 8.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.08266, allocations: 9.469 kB / 449.3 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.08267, allocations: 8 kB / 449.4 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.08269, allocations: 4 kB / 449.4 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.325e-05/0.08278, allocations: 23.92 kB / 449.4 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.0828, allocations: 7.938 kB / 449.4 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.08291, allocations: 31.7 kB / 449.4 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.08293, allocations: 16.31 kB / 449.4 MB, free: 8.207 MB / 298.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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.08304, allocations: 161.2 kB / 449.6 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.08319, allocations: 121.3 kB / 449.7 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.241e-05/0.08325, allocations: 29.7 kB / 449.7 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.08326, allocations: 4 kB / 449.7 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.08327, allocations: 4 kB / 449.7 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.08328, allocations: 8.391 kB / 449.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.08342, allocations: 245.5 kB / 450 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.08343, allocations: 0 / 450 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.39e-05/0.08347, allocations: 15.92 kB / 450 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.08348, allocations: 0 / 450 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.0835, allocations: 11.94 kB / 450 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.08351, allocations: 4 kB / 450 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.08351, allocations: 0 / 450 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.08378, allocations: 226.3 kB / 450.2 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.518e-05/0.08385, allocations: 116.7 kB / 450.4 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.08389, allocations: 8 kB / 450.4 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.711e-05/0.08396, allocations: 15.98 kB / 450.4 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.084, allocations: 4 kB / 450.4 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.08403, allocations: 8 kB / 450.4 MB, free: 7.133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001274/0.08416, allocations: 196.5 kB / 450.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08416, allocations: 0 / 450.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002669/0.08444, allocations: 47.92 kB / 450.6 MB, free: 6.898 MB / 298.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,table1.y,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.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000766/0.08521, allocations: 438.2 kB / 451.1 MB, free: 6.465 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.08546, allocations: 135.8 kB / 451.2 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.08547, allocations: 0 / 451.2 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.904e-05/0.08553, allocations: 27.98 kB / 451.2 MB, free: 6.305 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.08596, allocations: 109.4 kB / 451.3 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005084/0.08648, allocations: 480.8 kB / 451.8 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.08663, allocations: 0.7482 MB / 452.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.08668, allocations: 31.44 kB / 452.6 MB, free: 4.883 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08669, allocations: 0 / 452.6 MB, free: 4.883 MB / 298.7 MB Notification: Performance of Templates: time 0.003864/0.09055, allocations: 3.177 MB / 455.8 MB, free: 1.699 MB / 298.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