Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001848/0.001848, allocations: 110 kB / 20.43 MB, free: 1.453 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.002579/0.002579, allocations: 213.1 kB / 23.74 MB, free: 4.66 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.418/1.418, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.89 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2573, allocations: 53.4 MB / 431.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003914/0.2613, allocations: 2.003 MB / 433.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.2637, allocations: 1.371 MB / 434.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2638, allocations: 7.938 kB / 434.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.2641, allocations: 71.59 kB / 434.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004125/0.2645, allocations: 143.4 kB / 434.8 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008401/0.2654, allocations: 278.6 kB / 435 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000312/0.2657, allocations: 223.4 kB / 435.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.2658, allocations: 28.58 kB / 435.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.2659, allocations: 111.5 kB / 435.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.2661, allocations: 99.59 kB / 435.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.2661, allocations: 16 kB / 435.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2663, allocations: 87.88 kB / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.676e-05/0.2664, allocations: 71.73 kB / 435.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.2665, allocations: 99.3 kB / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.267, allocations: 299.2 kB / 436.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.267, allocations: 0 / 436.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.267, allocations: 0 / 436.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.267, allocations: 0 / 436.1 MB, free: 1.758 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.00102/0.268, allocations: 0.5178 MB / 436.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.2681, allocations: 12.03 kB / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.214e-05/0.2681, allocations: 50.73 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.15e-05/0.2682, allocations: 32.75 kB / 436.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005578/0.2687, allocations: 258.4 kB / 436.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.2688, allocations: 12.38 kB / 436.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.2688, allocations: 12.38 kB / 436.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.2694, allocations: 326.5 kB / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2694, allocations: 0 / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.2694, allocations: 7.938 kB / 437.3 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.2695, allocations: 4 kB / 437.3 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.2697, allocations: 67.95 kB / 437.3 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006119/0.2703, allocations: 401.3 kB / 437.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/0.2707, allocations: 180 kB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.2708, allocations: 86.53 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.2709, allocations: 8 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.2711, allocations: 79.31 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.2711, allocations: 0 / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005928/0.2716, allocations: 257.3 kB / 438.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.2718, allocations: 166.4 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.2722, allocations: 364.1 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.2722, allocations: 33.7 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2723, allocations: 128.6 kB / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.2723, allocations: 31.84 kB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.439e-05/0.2724, allocations: 53.89 kB / 439.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2726, allocations: 346.7 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-05/0.2727, allocations: 40.45 kB / 439.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.2729, allocations: 190.8 kB / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.2732, allocations: 219.4 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2732, allocations: 0 / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004527/0.2737, allocations: 237.5 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.2737, allocations: 10.66 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2737, allocations: 4 kB / 440.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2737, allocations: 4 kB / 440.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.2739, allocations: 39.92 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.2739, allocations: 7.938 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.274, allocations: 27.81 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.274, allocations: 16 kB / 440.2 MB, free: 13.22 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0002881/0.2743, allocations: 171.9 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.2745, allocations: 145.7 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.2748, allocations: 123.4 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2748, allocations: 8.031 kB / 440.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2748, allocations: 0 / 440.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.2748, allocations: 7.938 kB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.2751, allocations: 244.4 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2751, allocations: 4 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.2752, allocations: 27.98 kB / 440.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.365e-06/0.2752, allocations: 4 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.2752, allocations: 4 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.2752, allocations: 7.984 kB / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2752, allocations: 0 / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004098/0.2756, allocations: 254.1 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.2758, allocations: 59.72 kB / 441.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.2758, allocations: 8 kB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.2759, allocations: 4 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.2759, allocations: 7.984 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.276, allocations: 12 kB / 441.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.2762, allocations: 263 kB / 441.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2762, allocations: 0 / 441.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.2765, allocations: 47.92 kB / 441.6 MB, free: 11.76 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.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.002388/0.2789, allocations: 1.182 MB / 442.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000372/0.2793, allocations: 147.7 kB / 442.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.2793, allocations: 4 kB / 442.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.996e-05/0.2794, allocations: 23.98 kB / 442.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.2799, allocations: 125 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003524/0.2834, allocations: 2.735 MB / 445.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.2839, allocations: 0.7713 MB / 446.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.284, allocations: 34.28 kB / 446.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.2841, allocations: 83.39 kB / 446.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2841, allocations: 0 / 446.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03859/0.3227, allocations: 6.747 MB / 453.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.31, allocations: 3.281 kB / 453.4 MB, free: 15.84 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.78784e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable sum.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable sum.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.87435240799823]