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.001687/0.001686, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001908/0.001908, allocations: 191 kB / 18 MB, free: 5.105 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.499/1.499, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 55.91 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4556/0.4569, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.006353/0.4633, allocations: 1.991 MB / 402.7 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.4665, allocations: 1.103 MB / 403.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003128/0.4668, allocations: 7.938 kB / 403.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009509/0.4679, allocations: 159.4 kB / 404 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006132/0.4685, allocations: 115.5 kB / 404.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.4697, allocations: 242.6 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.4703, allocations: 227.4 kB / 404.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.4706, allocations: 44.3 kB / 404.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.4708, allocations: 99.55 kB / 404.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.4711, allocations: 87.61 kB / 404.8 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.747e-05/0.4711, allocations: 12 kB / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.4714, allocations: 59.95 kB / 404.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.4715, allocations: 59.77 kB / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.4717, allocations: 87.41 kB / 405 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005906/0.4723, allocations: 260.2 kB / 405.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4723, allocations: 0 / 405.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4723, allocations: 0 / 405.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.4723, allocations: 0 / 405.2 MB, free: 4.348 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.001293/0.4736, allocations: 0.5382 MB / 405.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.857e-05/0.4737, allocations: 15.97 kB / 405.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.4739, allocations: 24.66 kB / 405.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/0.4743, allocations: 294.7 kB / 406.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.4743, allocations: 8.375 kB / 406.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.4744, allocations: 16.12 kB / 406.1 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000631/0.475, allocations: 303 kB / 406.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.475, allocations: 0 / 406.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.4751, allocations: 0 / 406.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.4751, allocations: 4 kB / 406.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.4753, allocations: 67.91 kB / 406.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007032/0.476, allocations: 382.3 kB / 406.9 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.4763, allocations: 172 kB / 407 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.4765, allocations: 86.56 kB / 407.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.901e-05/0.4766, allocations: 11.97 kB / 407.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.4768, allocations: 79.39 kB / 407.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 3.687e-06/0.4768, allocations: 0 / 407.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005702/0.4774, allocations: 229.4 kB / 407.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.4775, allocations: 144.5 kB / 407.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.4778, allocations: 272.9 kB / 407.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.4778, allocations: 33.7 kB / 407.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.4779, allocations: 120.6 kB / 408 MB, free: 1.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.478, allocations: 31.72 kB / 408 MB, free: 1.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.4781, allocations: 57.84 kB / 408.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4782, allocations: 338.8 kB / 408.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.78e-05/0.4783, allocations: 36.45 kB / 408.5 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.4785, allocations: 174.7 kB / 408.6 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.4788, allocations: 203.2 kB / 408.8 MB, free: 372 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4788, allocations: 0 / 408.8 MB, free: 372 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000406/0.4792, allocations: 225 kB / 409 MB, free: 140 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.4792, allocations: 4 kB / 409 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.4792, allocations: 4.531 kB / 409 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.4793, allocations: 12 kB / 409.1 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.625e-05/0.4794, allocations: 23.86 kB / 409.1 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.4794, allocations: 8 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.4795, allocations: 23.86 kB / 409.1 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.4795, allocations: 12 kB / 409.1 MB, free: 52 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.000177/0.4797, allocations: 160 kB / 409.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.4799, allocations: 129.3 kB / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.254e-05/0.48, allocations: 29.72 kB / 409.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.48, allocations: 320 / 409.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.48, allocations: 4 kB / 409.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.48, allocations: 7.922 kB / 409.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.4802, allocations: 245.5 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4802, allocations: 4 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.632e-05/0.4803, allocations: 11.92 kB / 409.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4803, allocations: 4 kB / 409.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.4803, allocations: 4 kB / 409.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.4803, allocations: 4 kB / 409.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4803, allocations: 0 / 409.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.4807, allocations: 232 kB / 409.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.4808, allocations: 124.7 kB / 410.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.4808, allocations: 4 kB / 410.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.449e-05/0.4809, allocations: 7.984 kB / 410.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.481, allocations: 8 kB / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.481, allocations: 12 kB / 410.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001764/0.4812, allocations: 196.5 kB / 410.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.4812, allocations: 0 / 410.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.4815, allocations: 51.86 kB / 410.3 MB, free: 14.73 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.001035/0.4825, allocations: 426.5 kB / 410.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003187/0.4829, allocations: 147.9 kB / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4829, allocations: 0 / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.388e-05/0.4829, allocations: 24 kB / 410.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.4834, allocations: 109.7 kB / 411 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006635/0.4841, allocations: 386.4 kB / 411.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.4845, allocations: 0.7634 MB / 412.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.148e-05/0.4846, allocations: 22.17 kB / 412.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/0.4847, allocations: 35.42 kB / 412.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4847, allocations: 0 / 412.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Templates: time 0.008106/0.4928, allocations: 3.028 MB / 415.3 MB, free: 9.934 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