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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 103.1 kB / 16.02 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 200.1 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.817/1.817, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08936/0.08936, allocations: 12.58 MB / 282.7 MB, free: 15.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 87.88 kB / 343 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3326, allocations: 49.37 MB / 392.4 MB, free: 49.14 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.004837/0.3375, allocations: 2.033 MB / 394.4 MB, free: 47.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.3396, allocations: 1.01 MB / 395.4 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/0.3399, allocations: 6.938 kB / 395.4 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.341, allocations: 147.7 kB / 395.6 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003693/0.3413, allocations: 100.2 kB / 395.7 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008615/0.3422, allocations: 209.8 kB / 395.9 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003944/0.3426, allocations: 221 kB / 396.1 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.3428, allocations: 53.25 kB / 396.1 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.343, allocations: 96.36 kB / 396.2 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.3432, allocations: 100.7 kB / 396.3 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.3432, allocations: 11.88 kB / 396.3 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.3434, allocations: 57.56 kB / 396.4 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.3435, allocations: 56.53 kB / 396.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.3437, allocations: 89.92 kB / 396.5 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.3441, allocations: 241.9 kB / 396.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3441, allocations: 0 / 396.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3441, allocations: 0 / 396.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3441, allocations: 6.062 kB / 396.8 MB, free: 46.42 MB / 318.1 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.0009069/0.3451, allocations: 0.5467 MB / 397.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3451, allocations: 9.156 kB / 397.3 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.453e-05/0.3452, allocations: 25.31 kB / 397.4 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.3455, allocations: 278.7 kB / 397.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.3456, allocations: 15.11 kB / 397.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/0.3456, allocations: 16.47 kB / 397.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005741/0.3462, allocations: 303.2 kB / 398 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3462, allocations: 0 / 398 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.3462, allocations: 5.062 kB / 398 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3462, allocations: 7.125 kB / 398 MB, free: 45.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.3464, allocations: 58.84 kB / 398 MB, free: 45.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000555/0.347, allocations: 387.4 kB / 398.4 MB, free: 44.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.3473, allocations: 181.2 kB / 398.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.3475, allocations: 79.8 kB / 398.7 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.445e-05/0.3475, allocations: 3.344 kB / 398.7 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.3477, allocations: 79.88 kB / 398.7 MB, free: 44.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.3477, allocations: 3.938 kB / 398.7 MB, free: 44.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004973/0.3482, allocations: 225.3 kB / 399 MB, free: 44.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.351e-05/0.3483, allocations: 147 kB / 399.1 MB, free: 44.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.3486, allocations: 271 kB / 399.4 MB, free: 44.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.3486, allocations: 30.83 kB / 399.4 MB, free: 44.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.591e-05/0.3487, allocations: 117.4 kB / 399.5 MB, free: 44.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.3487, allocations: 33.59 kB / 399.5 MB, free: 44.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-05/0.3488, allocations: 49.75 kB / 399.6 MB, free: 44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.327e-05/0.3488, allocations: 336.4 kB / 399.9 MB, free: 43.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.633e-05/0.3489, allocations: 36.83 kB / 400 MB, free: 43.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.3491, allocations: 167.5 kB / 400.1 MB, free: 43.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.3493, allocations: 210.6 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3493, allocations: 5.156 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000336/0.3497, allocations: 218.3 kB / 400.5 MB, free: 43.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3497, allocations: 6.812 kB / 400.6 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3497, allocations: 8.969 kB / 400.6 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.3497, allocations: 5.562 kB / 400.6 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.3498, allocations: 31.14 kB / 400.6 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.3499, allocations: 6.344 kB / 400.6 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.35, allocations: 22.78 kB / 400.6 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.35, allocations: 10.62 kB / 400.6 MB, free: 43.09 MB / 318.1 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.0001279/0.3501, allocations: 172.2 kB / 400.8 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.3503, allocations: 130.8 kB / 400.9 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.309e-05/0.3504, allocations: 29.55 kB / 401 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3504, allocations: 3.031 kB / 401 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.3504, allocations: 1.156 kB / 401 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.3504, allocations: 8.922 kB / 401 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.3506, allocations: 247.5 kB / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3506, allocations: 0 / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.658e-05/0.3507, allocations: 10.62 kB / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.3507, allocations: 1.281 kB / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.3507, allocations: 10.39 kB / 401.2 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3507, allocations: 5.5 kB / 401.2 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3507, allocations: 1.219 kB / 401.2 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.351, allocations: 226 kB / 401.5 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.498e-05/0.3511, allocations: 115.6 kB / 401.6 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.3512, allocations: 11.44 kB / 401.6 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.958e-05/0.3512, allocations: 7.5 kB / 401.6 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.3513, allocations: 15.23 kB / 401.6 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.3513, allocations: 5.719 kB / 401.6 MB, free: 42.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001755/0.3515, allocations: 200.6 kB / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3515, allocations: 0 / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.3518, allocations: 43.56 kB / 401.9 MB, free: 42.11 MB / 318.1 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.0009057/0.3527, allocations: 421.6 kB / 402.3 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003445/0.3531, allocations: 153.9 kB / 402.4 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3531, allocations: 1.344 kB / 402.4 MB, free: 41.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.093e-05/0.3532, allocations: 22.44 kB / 402.4 MB, free: 41.69 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.3537, allocations: 124.6 kB / 402.6 MB, free: 41.62 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007998/0.3545, allocations: 451 kB / 403 MB, free: 41.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.3548, allocations: 0.7529 MB / 403.8 MB, free: 40.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.3549, allocations: 34.16 kB / 403.8 MB, free: 40.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.355, allocations: 29.95 kB / 403.8 MB, free: 40.52 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.355, allocations: 3.938 kB / 403.8 MB, free: 40.52 MB / 318.1 MB Notification: Performance of Templates: time 0.007145/0.3621, allocations: 2.96 MB / 406.8 MB, free: 39.02 MB / 318.1 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