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.001713/0.001714, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008563/0.0008564, allocations: 104.4 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 4 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2012, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.001799/0.2031, allocations: 1.682 MB / 409.7 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.2045, allocations: 1.153 MB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.2046, allocations: 3.938 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004993/0.2051, allocations: 143.5 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.2054, allocations: 132.2 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005181/0.2059, allocations: 207.6 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.2062, allocations: 203.4 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.2063, allocations: 48.97 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.79e-05/0.2064, allocations: 79.62 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.228e-05/0.2065, allocations: 83.55 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.2065, allocations: 4 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.2066, allocations: 43.98 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.2067, allocations: 43.83 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.2068, allocations: 105.2 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.2069, allocations: 193.9 kB / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.207, allocations: 0 / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.207, allocations: 0 / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.207, allocations: 0 / 412.1 MB, free: 23.58 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.0005608/0.2075, allocations: 0.5191 MB / 412.7 MB, free: 23.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.2076, allocations: 11.97 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.666e-05/0.2076, allocations: 24.66 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2079, allocations: 282.7 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2079, allocations: 16.36 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.208, allocations: 16.12 kB / 413 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004314/0.2084, allocations: 296.2 kB / 413.3 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2084, allocations: 0 / 413.3 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.2084, allocations: 4 kB / 413.3 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2085, allocations: 4 kB / 413.3 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.2086, allocations: 55.97 kB / 413.4 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003864/0.209, allocations: 390.2 kB / 413.7 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.2092, allocations: 172 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.2094, allocations: 90.53 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/0.2094, allocations: 19.94 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.2095, allocations: 67.39 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.2096, allocations: 0 / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003869/0.2099, allocations: 225.2 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.21, allocations: 152.4 kB / 414.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.2102, allocations: 273 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.2103, allocations: 29.7 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.2103, allocations: 124.6 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.2103, allocations: 39.56 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.2104, allocations: 4 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.2104, allocations: 338.8 kB / 415.2 MB, free: 20.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.112e-05/0.2105, allocations: 32.45 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.2106, allocations: 174.1 kB / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.2108, allocations: 199.2 kB / 415.6 MB, free: 19.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2108, allocations: 384 / 415.6 MB, free: 19.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002739/0.2111, allocations: 221.2 kB / 415.9 MB, free: 19.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2111, allocations: 8 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.2111, allocations: 4 kB / 415.9 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.2111, allocations: 7.938 kB / 415.9 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.252e-05/0.2112, allocations: 27.92 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2112, allocations: 11.94 kB / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.81e-05/0.2113, allocations: 15.94 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.2114, allocations: 8.281 kB / 415.9 MB, free: 19.38 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.0001165/0.2115, allocations: 168 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.2116, allocations: 121.3 kB / 416.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.238e-05/0.2117, allocations: 29.7 kB / 416.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2117, allocations: 4 kB / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2117, allocations: 0 / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.2117, allocations: 12.23 kB / 416.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.2119, allocations: 249.4 kB / 416.5 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2119, allocations: 8 kB / 416.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.2119, allocations: 15.92 kB / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.2119, allocations: 4 kB / 416.5 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.212, allocations: 4 kB / 416.5 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.212, allocations: 4 kB / 416.5 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.212, allocations: 0 / 416.5 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002555/0.2122, allocations: 237.6 kB / 416.8 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.2123, allocations: 120.8 kB / 416.9 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.2123, allocations: 8 kB / 416.9 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.804e-05/0.2124, allocations: 8 kB / 416.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.2125, allocations: 3.984 kB / 416.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.2125, allocations: 8 kB / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001407/0.2126, allocations: 200.5 kB / 417.1 MB, free: 18.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2126, allocations: 0 / 417.1 MB, free: 18.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002754/0.2129, allocations: 43.94 kB / 417.2 MB, free: 18.05 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.0007691/0.2137, allocations: 432.8 kB / 417.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.214, allocations: 140.7 kB / 417.7 MB, free: 17.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.214, allocations: 0 / 417.7 MB, free: 17.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.733e-05/0.214, allocations: 28.05 kB / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.2145, allocations: 115 kB / 417.9 MB, free: 17.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005324/0.215, allocations: 482.4 kB / 418.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.2152, allocations: 0.7599 MB / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.2152, allocations: 19.44 kB / 419.1 MB, free: 16.17 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2152, allocations: 0 / 419.1 MB, free: 16.17 MB / 298.7 MB Notification: Performance of Templates: time 0.004091/0.2193, allocations: 3.227 MB / 422.3 MB, free: 12.95 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