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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001717/0.001717, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002114/0.002114, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 257.4 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 63.89 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2593, allocations: 53.41 MB / 431.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003656/0.263, allocations: 2.029 MB / 433.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.2652, allocations: 1.285 MB / 434.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.2654, allocations: 7.938 kB / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006155/0.266, allocations: 159.4 kB / 434.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.2664, allocations: 166.8 kB / 434.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005925/0.267, allocations: 219.3 kB / 435 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.2673, allocations: 227.4 kB / 435.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2674, allocations: 32.58 kB / 435.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.2676, allocations: 95.62 kB / 435.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.2677, allocations: 107.5 kB / 435.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.2677, allocations: 12 kB / 435.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.2679, allocations: 71.94 kB / 435.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.389e-05/0.268, allocations: 51.78 kB / 435.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.848e-05/0.2681, allocations: 95.34 kB / 435.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.2685, allocations: 259.3 kB / 436 MB, free: 1.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2685, allocations: 4 kB / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2685, allocations: 0 / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2685, allocations: 0 / 436 MB, free: 1.859 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.0008255/0.2693, allocations: 494.5 kB / 436.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2693, allocations: 8.031 kB / 436.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.589e-05/0.2694, allocations: 50.73 kB / 436.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.7e-05/0.2694, allocations: 32.69 kB / 436.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.2698, allocations: 229 kB / 436.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.2698, allocations: 20.34 kB / 436.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.2698, allocations: 12.38 kB / 436.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005646/0.2704, allocations: 305.6 kB / 437.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2704, allocations: 4 kB / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.2704, allocations: 0 / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2704, allocations: 4 kB / 437.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.2706, allocations: 63.91 kB / 437.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.2711, allocations: 353.4 kB / 437.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003457/0.2715, allocations: 167.8 kB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.2716, allocations: 78.67 kB / 437.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.2717, allocations: 4.078 kB / 437.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.2718, allocations: 83.36 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.2718, allocations: 0 / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005091/0.2723, allocations: 217.4 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.2724, allocations: 144.5 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.2727, allocations: 281 kB / 438.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.2728, allocations: 37.7 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.45e-05/0.2729, allocations: 124.6 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.2729, allocations: 35.77 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.799e-05/0.273, allocations: 49.94 kB / 438.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2731, allocations: 338.8 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.252e-05/0.2732, allocations: 36.45 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.2734, allocations: 174.1 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.2737, allocations: 203.5 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2737, allocations: 4 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000359/0.274, allocations: 222 kB / 439.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2741, allocations: 8 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2741, allocations: 4 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.2741, allocations: 11.94 kB / 439.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.681e-05/0.2742, allocations: 31.86 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.2742, allocations: 7.938 kB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2743, allocations: 19.94 kB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.2743, allocations: 12 kB / 439.8 MB, free: 13.69 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.0001732/0.2745, allocations: 171.8 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.2747, allocations: 125.4 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002436/0.2749, allocations: 115.3 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2749, allocations: 4 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2749, allocations: 0 / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.2749, allocations: 3.984 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002209/0.2751, allocations: 220.5 kB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2752, allocations: 3.984 kB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.2752, allocations: 8 kB / 440.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2752, allocations: 0 / 440.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.2752, allocations: 12 kB / 440.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2752, allocations: 0 / 440.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.2752, allocations: 3.938 kB / 440.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.2756, allocations: 229.9 kB / 440.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.371e-05/0.2756, allocations: 43.83 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.2757, allocations: 8.125 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.999e-05/0.2758, allocations: 11.98 kB / 440.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.2758, allocations: 4 kB / 440.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.2758, allocations: 15.98 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.276, allocations: 200.5 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.276, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.2763, allocations: 43.94 kB / 441 MB, free: 12.41 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 (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.002397/0.2787, allocations: 1.154 MB / 442.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003497/0.2791, allocations: 144.4 kB / 442.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2791, allocations: 4 kB / 442.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.758e-05/0.2791, allocations: 19.98 kB / 442.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.2796, allocations: 115 kB / 442.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.2826, allocations: 2.411 MB / 444.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.283, allocations: 0.7519 MB / 445.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.417e-05/0.2831, allocations: 26.28 kB / 445.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.2832, allocations: 67.41 kB / 445.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2832, allocations: 0 / 445.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.3161, allocations: 5.937 MB / 451.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.23, allocations: 11.23 kB / 451.6 MB, free: 1.715 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable and1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable and1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.880184928002564]