Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 200.7 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007662/0.0007663, allocations: 95.92 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002264, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2104, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.001964/0.2124, allocations: 1.675 MB / 409.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.214, allocations: 1.182 MB / 410.4 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.2142, allocations: 7.938 kB / 410.4 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005204/0.2147, allocations: 136.6 kB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003158/0.2151, allocations: 124.5 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.2157, allocations: 217.6 kB / 410.8 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.2159, allocations: 207.4 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.216, allocations: 38.97 kB / 411.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2162, allocations: 75.62 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.2163, allocations: 87.55 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.2163, allocations: 9.188 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.2164, allocations: 43.97 kB / 411.3 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.2165, allocations: 43.83 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.188e-05/0.2165, allocations: 55.3 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.2167, allocations: 192.6 kB / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2168, allocations: 0 / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2168, allocations: 3.938 kB / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2168, allocations: 1.344 kB / 411.6 MB, free: 23.77 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.0006108/0.2174, allocations: 0.5161 MB / 412.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2174, allocations: 8.031 kB / 412.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.06e-05/0.2175, allocations: 27.22 kB / 412.1 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.2178, allocations: 269.6 kB / 412.4 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.2178, allocations: 15.88 kB / 412.4 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.2178, allocations: 15.95 kB / 412.4 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/0.2183, allocations: 304 kB / 412.7 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.2183, allocations: 0 / 412.7 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.2183, allocations: 0 / 412.7 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.2183, allocations: 8 kB / 412.7 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.2185, allocations: 59.97 kB / 412.8 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004053/0.2189, allocations: 386.2 kB / 413.2 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.2191, allocations: 176 kB / 413.3 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.2193, allocations: 78.55 kB / 413.4 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.2193, allocations: 12 kB / 413.4 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001309/0.2194, allocations: 75.39 kB / 413.5 MB, free: 21.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.2195, allocations: 0 / 413.5 MB, free: 21.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003956/0.2199, allocations: 225.2 kB / 413.7 MB, free: 21.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/0.2199, allocations: 148.4 kB / 413.9 MB, free: 21.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.2202, allocations: 277 kB / 414.1 MB, free: 20.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.2202, allocations: 25.7 kB / 414.2 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.2202, allocations: 128.6 kB / 414.3 MB, free: 20.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.2203, allocations: 31.78 kB / 414.3 MB, free: 20.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-06/0.2203, allocations: 7.938 kB / 414.3 MB, free: 20.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.365e-05/0.2203, allocations: 330.8 kB / 414.6 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.2204, allocations: 40.81 kB / 414.7 MB, free: 20.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.2205, allocations: 170.1 kB / 414.8 MB, free: 20.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.2206, allocations: 63.95 kB / 414.9 MB, free: 20.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2207, allocations: 0 / 414.9 MB, free: 20.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002824/0.2209, allocations: 225.4 kB / 415.1 MB, free: 19.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.221, allocations: 4 kB / 415.1 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.221, allocations: 8.031 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.221, allocations: 8 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.614e-05/0.2211, allocations: 23.92 kB / 415.2 MB, free: 19.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.2211, allocations: 7.938 kB / 415.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2212, allocations: 23.83 kB / 415.2 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.2212, allocations: 23.89 kB / 415.2 MB, free: 19.76 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,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.000109/0.2214, allocations: 163.9 kB / 415.4 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.2215, allocations: 125.3 kB / 415.5 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.2216, allocations: 29.7 kB / 415.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.2216, allocations: 4 kB / 415.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2216, allocations: 0 / 415.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.2216, allocations: 3.984 kB / 415.5 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.2217, allocations: 245.4 kB / 415.8 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.2217, allocations: 0 / 415.8 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.717e-05/0.2218, allocations: 19.92 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2218, allocations: 0 / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.2218, allocations: 4 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2218, allocations: 4 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2218, allocations: 320 / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.2221, allocations: 236.1 kB / 416 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.409e-05/0.2222, allocations: 124.7 kB / 416.2 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.2222, allocations: 12 kB / 416.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.125e-05/0.2223, allocations: 12 kB / 416.2 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.2223, allocations: 7.984 kB / 416.2 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.2224, allocations: 8 kB / 416.2 MB, free: 18.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.2225, allocations: 204.5 kB / 416.4 MB, free: 18.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2225, allocations: 0 / 416.4 MB, free: 18.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002688/0.2228, allocations: 39.98 kB / 416.4 MB, free: 18.44 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,sample1.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.0007616/0.2236, allocations: 430.5 kB / 416.9 MB, free: 18.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002558/0.2238, allocations: 135.8 kB / 417 MB, free: 18.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2238, allocations: 0 / 417 MB, free: 18.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.925e-05/0.2239, allocations: 27.98 kB / 417 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.2243, allocations: 123.7 kB / 417.1 MB, free: 17.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005465/0.2249, allocations: 474.5 kB / 417.6 MB, free: 17.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.2251, allocations: 0.7599 MB / 418.4 MB, free: 16.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.931e-05/0.2251, allocations: 27.44 kB / 418.4 MB, free: 16.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2251, allocations: 0 / 418.4 MB, free: 16.55 MB / 298.7 MB Notification: Performance of Templates: time 0.004688/0.2298, allocations: 3.236 MB / 421.6 MB, free: 13.33 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches