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.Hold.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.001317/0.001317, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001453/0.001453, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.378/1.378, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",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.001884/0.001884, allocations: 64.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2612, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003426/0.2647, allocations: 1.944 MB / 433.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.2667, allocations: 1.247 MB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2668, allocations: 3.938 kB / 435.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006079/0.2674, allocations: 159.5 kB / 435.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003719/0.2678, allocations: 159.4 kB / 435.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004452/0.2683, allocations: 178.1 kB / 435.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002759/0.2685, allocations: 203.4 kB / 435.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.2686, allocations: 21.8 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.2688, allocations: 83.62 kB / 435.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.2689, allocations: 83.61 kB / 436 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.2689, allocations: 8 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.269, allocations: 67.91 kB / 436.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.155e-05/0.2691, allocations: 47.83 kB / 436.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.946e-05/0.2692, allocations: 75.48 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.2695, allocations: 219.8 kB / 436.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2695, allocations: 0 / 436.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2695, allocations: 4 kB / 436.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2695, allocations: 0 / 436.4 MB, free: 2.395 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000749/0.2703, allocations: 454.7 kB / 436.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2703, allocations: 12.02 kB / 436.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.458e-05/0.2704, allocations: 42.75 kB / 436.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.2704, allocations: 28.78 kB / 436.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.2708, allocations: 221 kB / 437.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2708, allocations: 4.375 kB / 437.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.2708, allocations: 11.94 kB / 437.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.2711, allocations: 166.2 kB / 437.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2711, allocations: 0 / 437.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.2711, allocations: 7.938 kB / 437.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2712, allocations: 4 kB / 437.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.936e-05/0.2713, allocations: 31.92 kB / 437.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.2718, allocations: 429.6 kB / 437.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.272, allocations: 126.5 kB / 437.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.466e-05/0.2721, allocations: 55.42 kB / 437.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.2722, allocations: 7.922 kB / 438 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000172/0.2723, allocations: 89.11 kB / 438 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.2723, allocations: 0 / 438 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003689/0.2727, allocations: 165.4 kB / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.2728, allocations: 158.6 kB / 438.4 MB, free: 172 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.2731, allocations: 285.1 kB / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.2731, allocations: 25.7 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.2732, allocations: 128.3 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.2733, allocations: 23.75 kB / 438.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.619e-05/0.2733, allocations: 37.66 kB / 438.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2735, allocations: 326.8 kB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.52e-05/0.2735, allocations: 23.98 kB / 439.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.2736, allocations: 78.84 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.2738, allocations: 89.06 kB / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2738, allocations: 0 / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002214/0.274, allocations: 133.4 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.274, allocations: 6.656 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.274, allocations: 0 / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.274, allocations: 4 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/0.2741, allocations: 16.09 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2741, allocations: 4 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.279e-05/0.2742, allocations: 19.88 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.2742, allocations: 4 kB / 439.5 MB, free: 14.9 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001325/0.2743, allocations: 149.7 kB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.323e-05/0.2744, allocations: 65.88 kB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.2747, allocations: 115.3 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2747, allocations: 8.062 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2747, allocations: 0 / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.2747, allocations: 7.922 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002031/0.2749, allocations: 200.6 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.2749, allocations: 4 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.771e-05/0.2749, allocations: 8 kB / 440.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2749, allocations: 0 / 440.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.2749, allocations: 4 kB / 440.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2749, allocations: 0 / 440.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2749, allocations: 4 kB / 440.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.2752, allocations: 187.3 kB / 440.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.079e-05/0.2753, allocations: 23.89 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.2753, allocations: 4 kB / 440.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.468e-05/0.2753, allocations: 11.98 kB / 440.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.2754, allocations: 15.92 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.2754, allocations: 7.984 kB / 440.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.2756, allocations: 200.5 kB / 440.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2756, allocations: 0 / 440.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.2759, allocations: 35.89 kB / 440.6 MB, free: 13.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001897/0.2778, allocations: 1.022 MB / 441.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002252/0.278, allocations: 71.84 kB / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.278, allocations: 0 / 441.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.799e-05/0.2781, allocations: 32.36 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.2784, allocations: 72.05 kB / 441.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.2807, allocations: 2.017 MB / 443.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.2811, allocations: 0.7359 MB / 444.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.636e-05/0.2811, allocations: 17.73 kB / 444.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.678e-05/0.2812, allocations: 55.41 kB / 444.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2812, allocations: 7.938 kB / 444.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03085/0.3121, allocations: 4.929 MB / 449.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/8.217, allocations: 12 kB / 449.5 MB, free: 4.82 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.623278303071856] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 8.358590341173112 8.384747166 8.110351027 Calling exit ...