Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001702/0.001702, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002074/0.002074, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 8.043 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-beta.om/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_4_1_0-beta_om_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-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 64.75 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2572, allocations: 53.38 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003592/0.2608, allocations: 2.03 MB / 434 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.2629, allocations: 1.282 MB / 435.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.263, allocations: 7.938 kB / 435.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006156/0.2637, allocations: 163.4 kB / 435.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003809/0.264, allocations: 163.4 kB / 435.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005628/0.2646, allocations: 214 kB / 435.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.2649, allocations: 231.4 kB / 436 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.265, allocations: 28.58 kB / 436 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.2652, allocations: 95.62 kB / 436.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.2653, allocations: 103.5 kB / 436.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.2653, allocations: 16 kB / 436.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.2655, allocations: 67.95 kB / 436.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.851e-05/0.2656, allocations: 55.77 kB / 436.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.571e-05/0.2657, allocations: 91.42 kB / 436.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003589/0.266, allocations: 263.7 kB / 436.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.266, allocations: 0 / 436.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.266, allocations: 3.938 kB / 436.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.266, allocations: 0 / 436.7 MB, free: 2.043 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.0008011/0.2668, allocations: 494.5 kB / 437.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2669, allocations: 12.03 kB / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.2669, allocations: 50.67 kB / 437.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.111e-05/0.267, allocations: 28.75 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.2673, allocations: 225.1 kB / 437.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.2674, allocations: 20.3 kB / 437.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.093e-05/0.2674, allocations: 15.94 kB / 437.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.2679, allocations: 298.5 kB / 437.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.268, allocations: 0 / 437.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.268, allocations: 4 kB / 437.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.268, allocations: 0 / 437.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.2681, allocations: 59.97 kB / 437.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.2686, allocations: 369.3 kB / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.2689, allocations: 164 kB / 438.4 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.2691, allocations: 74.55 kB / 438.5 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.2691, allocations: 11.94 kB / 438.5 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.2693, allocations: 71.55 kB / 438.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.2693, allocations: 0 / 438.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.000487/0.2698, allocations: 229.3 kB / 438.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.2699, allocations: 144.8 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.2702, allocations: 285 kB / 439.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.2702, allocations: 33.7 kB / 439.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.199e-05/0.2703, allocations: 124.6 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.2703, allocations: 31.78 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.2704, allocations: 53.88 kB / 439.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.2705, allocations: 335.2 kB / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.318e-05/0.2706, allocations: 36.45 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.2708, allocations: 178.1 kB / 440 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.2711, allocations: 199.2 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2711, allocations: 3.938 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003506/0.2714, allocations: 225.5 kB / 440.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.2714, allocations: 8 kB / 440.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2715, allocations: 4 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.2715, allocations: 4 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.309e-05/0.2716, allocations: 27.92 kB / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.2716, allocations: 15.86 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.2717, allocations: 23.88 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.2717, allocations: 12 kB / 440.5 MB, free: 13.87 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.0001644/0.2719, allocations: 168 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.2721, allocations: 125.4 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000238/0.2723, allocations: 115.3 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.2723, allocations: 4 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2723, allocations: 0 / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.2723, allocations: 7.922 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.2725, allocations: 217 kB / 441.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2725, allocations: 0 / 441.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.171e-05/0.2726, allocations: 15.98 kB / 441.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2726, allocations: 4 kB / 441.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2726, allocations: 8 kB / 441.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2726, allocations: 0 / 441.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2726, allocations: 4 kB / 441.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000364/0.273, allocations: 232.3 kB / 441.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-05/0.273, allocations: 39.83 kB / 441.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.2731, allocations: 8 kB / 441.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.2732, allocations: 7.984 kB / 441.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.2732, allocations: 4 kB / 441.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.2732, allocations: 15.98 kB / 441.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.2734, allocations: 204.4 kB / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2734, allocations: 0 / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.2737, allocations: 43.94 kB / 441.7 MB, free: 12.59 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.002226/0.2759, allocations: 1.157 MB / 442.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003125/0.2762, allocations: 147.9 kB / 443 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2763, allocations: 0 / 443 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.737e-05/0.2763, allocations: 16 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.2768, allocations: 123.4 kB / 443.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.2796, allocations: 2.398 MB / 445.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.28, allocations: 0.7558 MB / 446.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.876e-05/0.2801, allocations: 26.5 kB / 446.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.2802, allocations: 71.41 kB / 446.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2802, allocations: 4 kB / 446.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.3108, allocations: 5.85 MB / 452.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.107, allocations: 11.92 kB / 452.2 MB, free: 1.996 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.584210170898587] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'and1.y'] 8.248205005656928 8.272487672 8.001965589 Calling exit ...