Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 115.2 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2529, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003091/0.256, allocations: 2.003 MB / 411.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.258, allocations: 1.251 MB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.2582, allocations: 7.938 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000527/0.2587, allocations: 159.5 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003695/0.2591, allocations: 159.3 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.2597, allocations: 214.7 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.26, allocations: 227.4 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.2601, allocations: 48.3 kB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2602, allocations: 95.61 kB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.2604, allocations: 99.48 kB / 414.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.2604, allocations: 12 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.2606, allocations: 59.97 kB / 414.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.187e-05/0.2606, allocations: 51.83 kB / 414.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.537e-05/0.2607, allocations: 95.34 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.2611, allocations: 262.8 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2611, allocations: 0 / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2611, allocations: 0 / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.2611, allocations: 4 kB / 414.6 MB, free: 12.88 MB / 334.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.0008041/0.2619, allocations: 0.5521 MB / 415.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2619, allocations: 11.97 kB / 415.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.815e-05/0.262, allocations: 28.64 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.2624, allocations: 286.7 kB / 415.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.2624, allocations: 20.36 kB / 415.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.2624, allocations: 20.06 kB / 415.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.263, allocations: 289.5 kB / 415.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.263, allocations: 0 / 415.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.263, allocations: 11.94 kB / 415.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.263, allocations: 0 / 415.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.2632, allocations: 55.97 kB / 415.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.2637, allocations: 398.2 kB / 416.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.264, allocations: 176 kB / 416.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.2642, allocations: 86.62 kB / 416.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.2642, allocations: 15.91 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001452/0.2644, allocations: 67.39 kB / 416.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.2644, allocations: 0 / 416.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004729/0.2648, allocations: 225.2 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/0.2649, allocations: 148.4 kB / 417 MB, free: 10.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.2652, allocations: 277 kB / 417.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.2653, allocations: 33.7 kB / 417.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.232e-05/0.2654, allocations: 120.6 kB / 417.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.199e-05/0.2654, allocations: 27.69 kB / 417.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.467e-05/0.2655, allocations: 53.94 kB / 417.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2656, allocations: 338.8 kB / 417.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.574e-05/0.2657, allocations: 44.39 kB / 417.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.2658, allocations: 170.1 kB / 418 MB, free: 9.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.2661, allocations: 199.2 kB / 418.2 MB, free: 8.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2661, allocations: 0 / 418.2 MB, free: 8.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003412/0.2665, allocations: 225.1 kB / 418.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2665, allocations: 4 kB / 418.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2665, allocations: 7.984 kB / 418.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2665, allocations: 8 kB / 418.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.775e-05/0.2666, allocations: 19.94 kB / 418.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.2666, allocations: 12.23 kB / 418.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.2668, allocations: 24.59 kB / 418.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2668, allocations: 20 kB / 418.5 MB, free: 8.559 MB / 334.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.000145/0.2669, allocations: 176.2 kB / 418.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.2671, allocations: 125.3 kB / 418.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.529e-05/0.2672, allocations: 33.69 kB / 418.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2672, allocations: 4 kB / 418.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2672, allocations: 0 / 418.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2672, allocations: 3.938 kB / 418.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.2674, allocations: 249.5 kB / 419.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2675, allocations: 4 kB / 419.1 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-05/0.2675, allocations: 11.94 kB / 419.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2675, allocations: 0 / 419.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.2675, allocations: 11.98 kB / 419.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2675, allocations: 3.938 kB / 419.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2675, allocations: 0 / 419.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/0.2679, allocations: 233.5 kB / 419.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.268, allocations: 116.7 kB / 419.5 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.268, allocations: 8 kB / 419.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.317e-05/0.2681, allocations: 8 kB / 419.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.2682, allocations: 7.984 kB / 419.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.2682, allocations: 8 kB / 419.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.2684, allocations: 200.5 kB / 419.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2684, allocations: 0 / 419.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000309/0.2687, allocations: 55.83 kB / 419.8 MB, free: 7.219 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.0009238/0.2696, allocations: 415 kB / 420.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.2699, allocations: 140.6 kB / 420.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.27, allocations: 0 / 420.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.922e-05/0.27, allocations: 28.17 kB / 420.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.2705, allocations: 125.3 kB / 420.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006315/0.2712, allocations: 427.2 kB / 420.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2715, allocations: 0.7635 MB / 421.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.366e-05/0.2715, allocations: 23.42 kB / 421.7 MB, free: 5.395 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2715, allocations: 4 kB / 421.7 MB, free: 5.391 MB / 334.1 MB Notification: Performance of Templates: time 0.00531/0.2769, allocations: 3.285 MB / 425 MB, free: 2.109 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches