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.001013/0.001013, allocations: 178.9 kB / 16.45 MB, free: 5.684 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.333/1.333, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007194/0.0007197, allocations: 100.7 kB / 270.9 MB, free: 8.348 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.06726/0.06726, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003744, allocations: 16 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06954/0.06993, allocations: 50.37 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.001911/0.07188, allocations: 1.634 MB / 444 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.07322, allocations: 0.9837 MB / 445 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.0734, allocations: 7.938 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005101/0.07392, allocations: 127.7 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.07419, allocations: 95.62 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005726/0.07478, allocations: 203.6 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.075, allocations: 199.4 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.07512, allocations: 44.28 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.07524, allocations: 75.62 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.07536, allocations: 79.61 kB / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.0754, allocations: 8 kB / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.07552, allocations: 35.98 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.07559, allocations: 43.83 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.472e-05/0.07564, allocations: 57.58 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.07585, allocations: 179.9 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.07586, allocations: 4 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.07587, allocations: 0 / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.07588, allocations: 0 / 446.1 MB, free: 12.67 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.0006192/0.07651, allocations: 0.5077 MB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.07655, allocations: 16.03 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.876e-05/0.07661, allocations: 23.72 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.07689, allocations: 273.5 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.07692, allocations: 11.94 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.07695, allocations: 12 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.0774, allocations: 302.1 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.07742, allocations: 0 / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.07745, allocations: 7.984 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.07746, allocations: 4 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.07759, allocations: 63.91 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.078, allocations: 386.3 kB / 447.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.07827, allocations: 176 kB / 447.9 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.0784, allocations: 82.55 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.07844, allocations: 7.984 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/0.07858, allocations: 71.39 kB / 448 MB, free: 10.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/0.0786, allocations: 0 / 448 MB, free: 10.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004104/0.07901, allocations: 233.2 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.07907, allocations: 140.5 kB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.07929, allocations: 268.9 kB / 448.7 MB, free: 9.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.07932, allocations: 37.69 kB / 448.7 MB, free: 9.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.07937, allocations: 120.7 kB / 448.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.0794, allocations: 27.64 kB / 448.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/0.07942, allocations: 8 kB / 448.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/0.07947, allocations: 330.8 kB / 449.2 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.496e-05/0.07956, allocations: 36.45 kB / 449.2 MB, free: 9.285 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.07967, allocations: 166.1 kB / 449.4 MB, free: 9.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.07978, allocations: 63.95 kB / 449.4 MB, free: 9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.07979, allocations: 4 kB / 449.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003048/0.0801, allocations: 217 kB / 449.7 MB, free: 8.777 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.08013, allocations: 8.906 kB / 449.7 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.08015, allocations: 16.2 kB / 449.7 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.08017, allocations: 4 kB / 449.7 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.137e-05/0.08026, allocations: 27.92 kB / 449.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.08028, allocations: 7.938 kB / 449.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.0804, allocations: 23.89 kB / 449.7 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.08042, allocations: 15.94 kB / 449.8 MB, free: 8.676 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.0001186/0.08054, allocations: 168.6 kB / 449.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.0807, allocations: 137.6 kB / 450.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.08076, allocations: 25.72 kB / 450.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.08077, allocations: 7.953 kB / 450.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.08078, allocations: 0 / 450.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.08079, allocations: 3.984 kB / 450.1 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.08094, allocations: 245.4 kB / 450.3 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.08095, allocations: 0 / 450.3 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.081, allocations: 15.98 kB / 450.3 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.08101, allocations: 0 / 450.3 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.08103, allocations: 4 kB / 450.4 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.08103, allocations: 0 / 450.4 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.08104, allocations: 7.953 kB / 450.4 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.08132, allocations: 225.4 kB / 450.6 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.0814, allocations: 116.8 kB / 450.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.08144, allocations: 11.98 kB / 450.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.436e-05/0.08152, allocations: 8 kB / 450.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.615e-05/0.08157, allocations: 11.95 kB / 450.7 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.08159, allocations: 7.984 kB / 450.7 MB, free: 7.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001422/0.08174, allocations: 196.5 kB / 450.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08174, allocations: 0 / 450.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002851/0.08203, allocations: 40 kB / 451 MB, free: 7.363 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.0007787/0.08282, allocations: 435.3 kB / 451.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002624/0.08309, allocations: 139.8 kB / 451.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.08311, allocations: 0 / 451.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.682e-05/0.08318, allocations: 27.98 kB / 451.6 MB, free: 6.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.08363, allocations: 109.4 kB / 451.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005844/0.08423, allocations: 458.2 kB / 452.1 MB, free: 6.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.08439, allocations: 0.7521 MB / 452.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.08445, allocations: 23.44 kB / 452.9 MB, free: 5.375 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.08446, allocations: 288 / 452.9 MB, free: 5.375 MB / 298.7 MB Notification: Performance of Templates: time 0.004543/0.089, allocations: 3.193 MB / 456.1 MB, free: 2.176 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