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.001247/0.001247, allocations: 108.4 kB / 17.74 MB, free: 5.188 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.001308/0.001308, allocations: 188.3 kB / 18.67 MB, free: 4.266 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.377/1.377, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2455, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.00361/0.2491, allocations: 1.987 MB / 403.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.2511, allocations: 1.106 MB / 404.5 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.2512, allocations: 11.94 kB / 404.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.2519, allocations: 151.5 kB / 404.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.2522, allocations: 122.4 kB / 404.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006983/0.2529, allocations: 241.3 kB / 405 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.2532, allocations: 231.4 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2534, allocations: 44.28 kB / 405.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.2535, allocations: 91.62 kB / 405.4 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.2537, allocations: 91.55 kB / 405.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.2537, allocations: 12 kB / 405.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.2538, allocations: 55.97 kB / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.716e-05/0.2539, allocations: 63.75 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.914e-05/0.254, allocations: 79.48 kB / 405.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003587/0.2544, allocations: 262.8 kB / 405.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2544, allocations: 4 kB / 405.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2544, allocations: 0 / 405.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.2544, allocations: 0 / 405.9 MB, free: 4.336 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.0008675/0.2553, allocations: 0.5366 MB / 406.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2554, allocations: 11.89 kB / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.692e-05/0.2554, allocations: 32.66 kB / 406.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.2558, allocations: 282.7 kB / 406.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.2558, allocations: 12.38 kB / 406.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.2559, allocations: 20.06 kB / 406.8 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005351/0.2564, allocations: 295 kB / 407.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2564, allocations: 4 kB / 407.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.2565, allocations: 8 kB / 407.1 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.2565, allocations: 7.984 kB / 407.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.2566, allocations: 59.89 kB / 407.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004949/0.2571, allocations: 386.2 kB / 407.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.2574, allocations: 180 kB / 407.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.2576, allocations: 78.55 kB / 407.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.2576, allocations: 8 kB / 407.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.2578, allocations: 75.41 kB / 407.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.033e-06/0.2578, allocations: 0 / 407.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004716/0.2583, allocations: 233.2 kB / 408.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.2584, allocations: 140.5 kB / 408.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.2586, allocations: 272.9 kB / 408.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.2587, allocations: 37.7 kB / 408.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.2588, allocations: 116.5 kB / 408.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.2588, allocations: 27.8 kB / 408.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.2589, allocations: 53.84 kB / 408.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.259, allocations: 338.8 kB / 409.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.617e-05/0.2591, allocations: 36.45 kB / 409.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2593, allocations: 178.7 kB / 409.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.2595, allocations: 203.2 kB / 409.5 MB, free: 368 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2595, allocations: 4 kB / 409.5 MB, free: 364 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003381/0.2599, allocations: 221.4 kB / 409.7 MB, free: 136 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2599, allocations: 12.09 kB / 409.7 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2599, allocations: 4 kB / 409.7 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.2599, allocations: 8.359 kB / 409.7 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.093e-05/0.26, allocations: 19.94 kB / 409.8 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.26, allocations: 11.98 kB / 409.8 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.2601, allocations: 23.81 kB / 409.8 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.2602, allocations: 11.94 kB / 409.8 MB, free: 44 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.0001577/0.2603, allocations: 168 kB / 410 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.2605, allocations: 125.3 kB / 410.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.221e-05/0.2606, allocations: 29.7 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.2606, allocations: 4 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2606, allocations: 0 / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2606, allocations: 7.938 kB / 410.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.2608, allocations: 241.5 kB / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2608, allocations: 320 / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.389e-05/0.2609, allocations: 11.98 kB / 410.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.2609, allocations: 3.938 kB / 410.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.2609, allocations: 12 kB / 410.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2609, allocations: 4 kB / 410.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2609, allocations: 0 / 410.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.2613, allocations: 228.2 kB / 410.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.2614, allocations: 116.7 kB / 410.7 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.433e-05/0.2614, allocations: 11.98 kB / 410.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.511e-05/0.2615, allocations: 12 kB / 410.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.2616, allocations: 4 kB / 410.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.2616, allocations: 11.98 kB / 410.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.2618, allocations: 200.4 kB / 411 MB, free: 14.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2618, allocations: 3.938 kB / 411 MB, free: 14.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003155/0.2621, allocations: 43.94 kB / 411 MB, free: 14.72 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.0009997/0.2631, allocations: 427.2 kB / 411.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003237/0.2635, allocations: 143.7 kB / 411.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.2635, allocations: 0 / 411.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.204e-05/0.2636, allocations: 27.98 kB / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.2641, allocations: 112.3 kB / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007051/0.2648, allocations: 419.2 kB / 412.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.2651, allocations: 0.7598 MB / 412.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.533e-05/0.2652, allocations: 23.42 kB / 412.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2652, allocations: 0 / 412.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Templates: time 0.005601/0.2708, allocations: 3.242 MB / 416.1 MB, free: 9.695 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/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