Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.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.001426/0.001426, allocations: 110.4 kB / 17.07 MB, free: 5.996 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.001608/0.001608, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 51.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4149, allocations: 49.43 MB / 400.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004734/0.4197, allocations: 1.994 MB / 402.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.4224, allocations: 1.11 MB / 403.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.4226, allocations: 4 kB / 403.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000941/0.4236, allocations: 157.5 kB / 404 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004527/0.4241, allocations: 111.5 kB / 404.1 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009161/0.425, allocations: 244.2 kB / 404.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.4254, allocations: 227.4 kB / 404.5 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.4256, allocations: 48.28 kB / 404.6 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.4259, allocations: 95.61 kB / 404.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.4261, allocations: 91.55 kB / 404.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.404e-05/0.4261, allocations: 12 kB / 404.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003129/0.4264, allocations: 51.97 kB / 404.8 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.4266, allocations: 55.81 kB / 404.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.4267, allocations: 91.36 kB / 405 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006639/0.4274, allocations: 254.9 kB / 405.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4274, allocations: 0 / 405.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4274, allocations: 0 / 405.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.308e-05/0.4274, allocations: 7.984 kB / 405.2 MB, free: 4.496 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.001362/0.4288, allocations: 0.5544 MB / 405.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.4289, allocations: 15.83 kB / 405.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.429, allocations: 24.8 kB / 405.8 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.4295, allocations: 283 kB / 406.1 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.4296, allocations: 16.31 kB / 406.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.4296, allocations: 24.06 kB / 406.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006664/0.4303, allocations: 295 kB / 406.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.4303, allocations: 3.984 kB / 406.4 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.4303, allocations: 8 kB / 406.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.4304, allocations: 0 / 406.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.4305, allocations: 55.97 kB / 406.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007274/0.4313, allocations: 398.2 kB / 406.9 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.4317, allocations: 164 kB / 407.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.4318, allocations: 94.55 kB / 407.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.456e-05/0.4319, allocations: 11.92 kB / 407.2 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.4321, allocations: 67.39 kB / 407.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.835e-06/0.4321, allocations: 0 / 407.2 MB, free: 2.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.000628/0.4328, allocations: 237.4 kB / 407.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.4329, allocations: 144.5 kB / 407.6 MB, free: 1.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.4333, allocations: 269 kB / 407.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.4333, allocations: 33.69 kB / 407.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.365e-05/0.4334, allocations: 116.7 kB / 408 MB, free: 1.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.4335, allocations: 31.78 kB / 408 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.4336, allocations: 61.83 kB / 408.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4338, allocations: 334.8 kB / 408.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.4339, allocations: 40.45 kB / 408.5 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.434, allocations: 170.8 kB / 408.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.4343, allocations: 203.2 kB / 408.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.4343, allocations: 4 kB / 408.8 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003692/0.4347, allocations: 221.3 kB / 409 MB, free: 276 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.4347, allocations: 8 kB / 409.1 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.4348, allocations: 4 kB / 409.1 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.4348, allocations: 4.375 kB / 409.1 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.866e-05/0.4349, allocations: 23.92 kB / 409.1 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.4349, allocations: 7.938 kB / 409.1 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.435, allocations: 27.81 kB / 409.1 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.4351, allocations: 20.31 kB / 409.1 MB, free: 180 kB / 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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.4353, allocations: 164 kB / 409.3 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.4355, allocations: 129.8 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.807e-05/0.4356, allocations: 25.72 kB / 409.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.4356, allocations: 4 kB / 409.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.4356, allocations: 4 kB / 409.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4356, allocations: 11.91 kB / 409.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.4358, allocations: 241.5 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4358, allocations: 4 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-05/0.4359, allocations: 15.92 kB / 409.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4359, allocations: 0 / 409.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.4359, allocations: 8 kB / 409.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4359, allocations: 0 / 409.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4359, allocations: 0 / 409.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.4363, allocations: 232.2 kB / 410 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.4364, allocations: 120.9 kB / 410.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.4365, allocations: 4 kB / 410.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.262e-05/0.4366, allocations: 11.98 kB / 410.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.4366, allocations: 4 kB / 410.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.4367, allocations: 8 kB / 410.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.4369, allocations: 196.5 kB / 410.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.625e-06/0.4369, allocations: 0 / 410.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.4373, allocations: 55.8 kB / 410.4 MB, free: 14.86 MB / 334.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,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 (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.001158/0.4384, allocations: 426.8 kB / 410.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003958/0.4388, allocations: 148.7 kB / 410.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4389, allocations: 0 / 410.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.15e-05/0.4389, allocations: 16.06 kB / 410.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005232/0.4395, allocations: 116.3 kB / 411 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008373/0.4403, allocations: 384.5 kB / 411.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.4408, allocations: 0.7637 MB / 412.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.4409, allocations: 22.17 kB / 412.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.277e-05/0.441, allocations: 31.42 kB / 412.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.441, allocations: 3.938 kB / 412.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of Templates: time 0.008589/0.4496, allocations: 3.019 MB / 415.3 MB, free: 10.07 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches