Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 210.4 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2549, allocations: 53.37 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003734/0.2587, allocations: 1.988 MB / 433.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.2609, allocations: 1.192 MB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.2611, allocations: 11.88 kB / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006298/0.2617, allocations: 155 kB / 434.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004622/0.2622, allocations: 171.3 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.2628, allocations: 207.4 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.2632, allocations: 231.4 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2633, allocations: 32.58 kB / 435 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.2634, allocations: 99.55 kB / 435.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2636, allocations: 95.53 kB / 435.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.2636, allocations: 12 kB / 435.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.2638, allocations: 67.89 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.95e-05/0.2639, allocations: 63.77 kB / 435.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.264, allocations: 67.53 kB / 435.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.2644, allocations: 263.3 kB / 435.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2644, allocations: 4 kB / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2644, allocations: 0 / 435.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.2644, allocations: 3.938 kB / 435.7 MB, free: 1.969 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.0008593/0.2653, allocations: 490.6 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.2653, allocations: 8.031 kB / 436.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.2654, allocations: 42.75 kB / 436.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.293e-05/0.2654, allocations: 28.75 kB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.2658, allocations: 237 kB / 436.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.2658, allocations: 12.38 kB / 436.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.2659, allocations: 15.94 kB / 436.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005509/0.2664, allocations: 295.2 kB / 436.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.2664, allocations: 0 / 436.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.2664, allocations: 4 kB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.2664, allocations: 4 kB / 436.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.2666, allocations: 67.89 kB / 436.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005207/0.2671, allocations: 337.5 kB / 437.2 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.2675, allocations: 167.9 kB / 437.4 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.2676, allocations: 78.55 kB / 437.5 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.2676, allocations: 4 kB / 437.5 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.2678, allocations: 83.31 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/0.2678, allocations: 0 / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005122/0.2683, allocations: 229.5 kB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.2684, allocations: 118.8 kB / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.2687, allocations: 289.3 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.2688, allocations: 29.7 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2689, allocations: 120.6 kB / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.2689, allocations: 35.84 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.269, allocations: 57.8 kB / 438.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2691, allocations: 342.8 kB / 438.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.882e-05/0.2692, allocations: 36.45 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.2694, allocations: 193.1 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.2697, allocations: 199.3 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2697, allocations: 4 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003845/0.2701, allocations: 225.1 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2701, allocations: 11.94 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.2701, allocations: 4.531 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.2701, allocations: 12 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.464e-05/0.2702, allocations: 23.92 kB / 439.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.2703, allocations: 11.98 kB / 439.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.2704, allocations: 23.83 kB / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.2704, allocations: 8 kB / 439.5 MB, free: 13.83 MB / 350.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.0001604/0.2705, allocations: 163.9 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.2707, allocations: 129.4 kB / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002437/0.271, allocations: 123.3 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.271, allocations: 8 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.271, allocations: 0 / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.271, allocations: 7.938 kB / 439.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002089/0.2712, allocations: 193 kB / 440.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2712, allocations: 4 kB / 440.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-05/0.2713, allocations: 19.92 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2713, allocations: 0 / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.2713, allocations: 4 kB / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.2713, allocations: 0 / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.2713, allocations: 0 / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003856/0.2717, allocations: 254 kB / 440.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.685e-05/0.2718, allocations: 35.78 kB / 440.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.2718, allocations: 11.98 kB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.2719, allocations: 8 kB / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.2719, allocations: 15.86 kB / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.2719, allocations: 8 kB / 440.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002197/0.2722, allocations: 204.5 kB / 440.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2722, allocations: 96 / 440.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.2725, allocations: 47.88 kB / 440.7 MB, free: 12.53 MB / 350.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.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * 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 (23): * Single equations (assignments): 21 * 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.002322/0.2748, allocations: 1.19 MB / 441.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003076/0.2751, allocations: 143.6 kB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2751, allocations: 1.062 kB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.558e-05/0.2752, allocations: 31.92 kB / 442 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004885/0.2757, allocations: 127.7 kB / 442.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.2786, allocations: 2.416 MB / 444.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001583/0.2788, allocations: 145.5 kB / 444.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.775e-05/0.2789, allocations: 30.66 kB / 444.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.279, allocations: 67.42 kB / 444.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.279, allocations: 0 / 444.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03913/0.3181, allocations: 6.45 MB / 451.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.38, allocations: 0 / 451.3 MB, free: 1.961 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.78926e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable upSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable and1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable and1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.897253810428083]