Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002006/0.002006, allocations: 178.6 kB / 16.77 MB, free: 4.926 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.811/1.811, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0008337/0.0008338, allocations: 94.3 kB / 271.3 MB, free: 8.23 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.07275/0.07276, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004027, allocations: 20 kB / 392.6 MB, free: 66.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07478/0.07521, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.001883/0.07714, allocations: 1.65 MB / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.07842, allocations: 0.9526 MB / 445.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.07859, allocations: 3.938 kB / 445.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005254/0.07913, allocations: 139.7 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.07939, allocations: 91.64 kB / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005518/0.07995, allocations: 195.6 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.08018, allocations: 203.4 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.08031, allocations: 40.28 kB / 446.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.08042, allocations: 79.62 kB / 446.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.08054, allocations: 79.61 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.08057, allocations: 8 kB / 446.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.08069, allocations: 35.98 kB / 446.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.865e-05/0.08076, allocations: 47.81 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.287e-05/0.08084, allocations: 101.2 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.08102, allocations: 175.9 kB / 446.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.08104, allocations: 0 / 446.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.08104, allocations: 0 / 446.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.08105, allocations: 0 / 446.7 MB, free: 12.31 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.0006041/0.08166, allocations: 0.5157 MB / 447.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.0817, allocations: 15.97 kB / 447.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.08176, allocations: 24.66 kB / 447.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.08204, allocations: 270.8 kB / 447.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.08207, allocations: 16.3 kB / 447.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.08209, allocations: 16.12 kB / 447.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.08252, allocations: 302.1 kB / 447.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.08254, allocations: 3.984 kB / 447.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.08256, allocations: 8 kB / 447.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.08257, allocations: 4 kB / 447.9 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.08272, allocations: 55.97 kB / 448 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004015/0.08313, allocations: 386.3 kB / 448.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002443/0.08339, allocations: 180 kB / 448.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.08351, allocations: 78.55 kB / 448.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.08355, allocations: 11.92 kB / 448.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.08368, allocations: 83.38 kB / 448.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.903e-06/0.08369, allocations: 0 / 448.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003927/0.08409, allocations: 221.2 kB / 448.9 MB, free: 9.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.08416, allocations: 140.5 kB / 449 MB, free: 9.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.08437, allocations: 272.9 kB / 449.3 MB, free: 9.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.08439, allocations: 37.7 kB / 449.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.08445, allocations: 116.7 kB / 449.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.08448, allocations: 31.64 kB / 449.5 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-06/0.08449, allocations: 11.94 kB / 449.5 MB, free: 9.273 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.08455, allocations: 334.8 kB / 449.8 MB, free: 8.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.156e-05/0.08463, allocations: 36.45 kB / 449.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.08474, allocations: 166.1 kB / 450 MB, free: 8.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.08492, allocations: 199.2 kB / 450.2 MB, free: 8.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.08493, allocations: 8.375 kB / 450.2 MB, free: 8.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002854/0.08522, allocations: 217.5 kB / 450.4 MB, free: 8.203 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.08524, allocations: 4 kB / 450.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.08526, allocations: 8 kB / 450.4 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.08528, allocations: 11.94 kB / 450.5 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.139e-05/0.08537, allocations: 23.92 kB / 450.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.08538, allocations: 7.938 kB / 450.5 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.08549, allocations: 19.84 kB / 450.5 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.08551, allocations: 19.98 kB / 450.5 MB, free: 8.109 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 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,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.000108/0.08563, allocations: 164 kB / 450.7 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.08577, allocations: 133.6 kB / 450.8 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.179e-05/0.08583, allocations: 29.7 kB / 450.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.08584, allocations: 4 kB / 450.9 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.08585, allocations: 4 kB / 450.9 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.08586, allocations: 7.922 kB / 450.9 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.086, allocations: 245.5 kB / 451.1 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.08601, allocations: 0 / 451.1 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-05/0.08605, allocations: 15.92 kB / 451.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.08606, allocations: 4 kB / 451.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.08608, allocations: 0 / 451.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.08608, allocations: 8 kB / 451.1 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08609, allocations: 0 / 451.1 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.08635, allocations: 226.3 kB / 451.4 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.08643, allocations: 116.8 kB / 451.5 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.08647, allocations: 4 kB / 451.5 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.965e-05/0.08655, allocations: 19.98 kB / 451.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.08659, allocations: 0 / 451.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.08661, allocations: 11.98 kB / 451.5 MB, free: 7.023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001418/0.08676, allocations: 196.5 kB / 451.7 MB, free: 6.836 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08677, allocations: 0 / 451.7 MB, free: 6.836 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002688/0.08704, allocations: 39.94 kB / 451.7 MB, free: 6.797 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 (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.000731/0.08778, allocations: 430.5 kB / 452.2 MB, free: 6.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002409/0.08803, allocations: 139.7 kB / 452.3 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.08804, allocations: 4 kB / 452.3 MB, free: 6.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.575e-05/0.0881, allocations: 20 kB / 452.3 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.08855, allocations: 113.4 kB / 452.4 MB, free: 6.102 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006493/0.08921, allocations: 470.2 kB / 452.9 MB, free: 5.602 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.08941, allocations: 0.7485 MB / 453.6 MB, free: 4.828 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/0.08948, allocations: 27.44 kB / 453.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08949, allocations: 0 / 453.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of Templates: time 0.004737/0.09423, allocations: 3.185 MB / 456.8 MB, free: 1.613 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches