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.001487/0.001487, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001689/0.001689, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.375/1.375, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009914/0.0009914, allocations: 50.5 kB / 301.3 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08487/0.08588, allocations: 49.44 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003404/0.08932, allocations: 1.985 MB / 352.7 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.09109, allocations: 1.099 MB / 353.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.09123, allocations: 7.875 kB / 353.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000563/0.09182, allocations: 154.2 kB / 354 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.09212, allocations: 119.5 kB / 354.1 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006654/0.09279, allocations: 250.9 kB / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002406/0.09304, allocations: 219.4 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.09318, allocations: 40.28 kB / 354.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.0933, allocations: 91.62 kB / 354.7 MB, free: 440 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.09342, allocations: 91.61 kB / 354.8 MB, free: 348 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.09346, allocations: 16 kB / 354.8 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.0936, allocations: 55.92 kB / 354.8 MB, free: 276 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.354e-05/0.09369, allocations: 67.75 kB / 354.9 MB, free: 208 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.114e-05/0.09378, allocations: 79.48 kB / 355 MB, free: 128 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.09409, allocations: 251.6 kB / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.09411, allocations: 0 / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09411, allocations: 0 / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.09412, allocations: 0 / 355.2 MB, free: 15.88 MB / 302.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.000757/0.09489, allocations: 0.5505 MB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.09492, allocations: 8.031 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.425e-05/0.09499, allocations: 24.66 kB / 355.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/0.09531, allocations: 278.7 kB / 356.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.09534, allocations: 16.38 kB / 356.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.09537, allocations: 16.11 kB / 356.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004955/0.09587, allocations: 306.9 kB / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.09589, allocations: 0 / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.09591, allocations: 4 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.09593, allocations: 8 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.09608, allocations: 63.89 kB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.09657, allocations: 382.3 kB / 356.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.09689, allocations: 179.9 kB / 357 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.09704, allocations: 82.55 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.09707, allocations: 0 / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.09723, allocations: 87.44 kB / 357.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.854e-06/0.09725, allocations: 0 / 357.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004909/0.09774, allocations: 229.2 kB / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.09784, allocations: 144.5 kB / 357.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002719/0.09812, allocations: 272.9 kB / 357.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.09816, allocations: 25.7 kB / 357.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.051e-05/0.09823, allocations: 120.7 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.09827, allocations: 39.62 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/0.09835, allocations: 53.92 kB / 358.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.09847, allocations: 334.8 kB / 358.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-05/0.09856, allocations: 36.45 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.09873, allocations: 167.3 kB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.09896, allocations: 199.2 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.09897, allocations: 4 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003321/0.09931, allocations: 221 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.09934, allocations: 8.531 kB / 359 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.09935, allocations: 8 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.09937, allocations: 4 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.525e-05/0.09947, allocations: 31.86 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.09949, allocations: 4 kB / 359.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.09961, allocations: 23.78 kB / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.09963, allocations: 12 kB / 359.1 MB, free: 11.6 MB / 302.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.0001347/0.09977, allocations: 164 kB / 359.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.09996, allocations: 129.3 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.331e-05/0.1, allocations: 29.7 kB / 359.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1, allocations: 4 kB / 359.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1, allocations: 0 / 359.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1001, allocations: 3.938 kB / 359.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.1003, allocations: 253.4 kB / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1003, allocations: 320 / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.758e-05/0.1003, allocations: 7.938 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.1003, allocations: 8 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.1004, allocations: 8.453 kB / 359.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1004, allocations: 4 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1004, allocations: 4 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003547/0.1007, allocations: 229.5 kB / 359.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.477e-05/0.1009, allocations: 112.9 kB / 360 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/0.1009, allocations: 8 kB / 360 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.24e-05/0.101, allocations: 8 kB / 360.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.101, allocations: 7.984 kB / 360.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.1011, allocations: 8 kB / 360.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.1012, allocations: 196.5 kB / 360.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1012, allocations: 0 / 360.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.1016, allocations: 47.84 kB / 360.3 MB, free: 10.28 MB / 302.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.0009279/0.1025, allocations: 433.4 kB / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003168/0.1028, allocations: 159.7 kB / 360.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1028, allocations: 3.938 kB / 360.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.687e-05/0.1029, allocations: 20 kB / 360.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.1034, allocations: 122.6 kB / 361 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006667/0.1041, allocations: 423.1 kB / 361.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1044, allocations: 0.7518 MB / 362.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.237e-05/0.1045, allocations: 27.44 kB / 362.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1045, allocations: 0 / 362.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of Templates: time 0.004918/0.1094, allocations: 3.2 MB / 365.4 MB, free: 5.262 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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