Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 103.9 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 188.8 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 43.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2425, allocations: 52.18 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003366/0.2459, allocations: 1.885 MB / 425.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.2477, allocations: 1.091 MB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.574e-05/0.2478, allocations: 0 / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.2481, allocations: 67.66 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.2484, allocations: 95.58 kB / 426.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006859/0.2491, allocations: 273.2 kB / 426.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000237/0.2493, allocations: 175.5 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2494, allocations: 27.78 kB / 426.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.2495, allocations: 79.64 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.2497, allocations: 83.66 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.2497, allocations: 12 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.2499, allocations: 71.95 kB / 427.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.429e-05/0.25, allocations: 63.69 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.833e-05/0.25, allocations: 55.61 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.2504, allocations: 243 kB / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.2504, allocations: 4 kB / 427.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2504, allocations: 0 / 427.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2504, allocations: 0 / 427.5 MB, free: 10.17 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.0007457/0.2512, allocations: 490.4 kB / 428 MB, free: 9.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2512, allocations: 12.03 kB / 428 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.322e-05/0.2512, allocations: 192 / 428 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.061e-05/0.2513, allocations: 38.75 kB / 428.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.461e-05/0.2513, allocations: 24.8 kB / 428.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.2517, allocations: 225.6 kB / 428.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.2517, allocations: 16.11 kB / 428.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.2517, allocations: 7.938 kB / 428.3 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.2521, allocations: 223.4 kB / 428.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.2521, allocations: 0 / 428.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.2521, allocations: 0 / 428.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2522, allocations: 4 kB / 428.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.2523, allocations: 51.84 kB / 428.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005894/0.2529, allocations: 437.6 kB / 429 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.2532, allocations: 134.5 kB / 429.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.2533, allocations: 59.41 kB / 429.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2533, allocations: 4 kB / 429.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.2535, allocations: 101 kB / 429.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.2535, allocations: 4 kB / 429.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004364/0.2539, allocations: 177.4 kB / 429.5 MB, free: 7.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.2541, allocations: 187.9 kB / 429.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.2544, allocations: 333.8 kB / 430 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2545, allocations: 33.7 kB / 430.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.2546, allocations: 120.4 kB / 430.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.2546, allocations: 27.77 kB / 430.2 MB, free: 7.223 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.214e-05/0.2547, allocations: 42.03 kB / 430.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2548, allocations: 338.8 kB / 430.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.2549, allocations: 31.92 kB / 430.6 MB, free: 6.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.2551, allocations: 172.8 kB / 430.8 MB, free: 6.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.2553, allocations: 97.08 kB / 430.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2553, allocations: 0 / 430.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003241/0.2556, allocations: 141.4 kB / 431 MB, free: 6.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2556, allocations: 8 kB / 431 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.2556, allocations: 0 / 431 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.2556, allocations: 4 kB / 431 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.2557, allocations: 23.92 kB / 431 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.2558, allocations: 7.938 kB / 431 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.974e-05/0.2558, allocations: 8 kB / 431.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.2558, allocations: 4 kB / 431.1 MB, free: 6.277 MB / 334.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.0001531/0.256, allocations: 158 kB / 431.2 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-05/0.2561, allocations: 69.5 kB / 431.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002861/0.2564, allocations: 135.2 kB / 431.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2564, allocations: 4 kB / 431.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2564, allocations: 3.938 kB / 431.4 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2564, allocations: 3.984 kB / 431.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.2566, allocations: 213 kB / 431.6 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2566, allocations: 4 kB / 431.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.733e-05/0.2567, allocations: 16 kB / 431.7 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2567, allocations: 4.062 kB / 431.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.2567, allocations: 7.984 kB / 431.7 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2567, allocations: 0 / 431.7 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.2567, allocations: 3.938 kB / 431.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.257, allocations: 187.5 kB / 431.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.538e-05/0.2571, allocations: 43.88 kB / 431.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.2572, allocations: 3.984 kB / 431.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.241e-05/0.2572, allocations: 8 kB / 431.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.2573, allocations: 15.86 kB / 431.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.2573, allocations: 15.98 kB / 431.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.2576, allocations: 241.2 kB / 432.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2576, allocations: 0 / 432.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000267/0.2578, allocations: 35.94 kB / 432.2 MB, free: 5.031 MB / 334.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 (12): * Single equations (assignments): 10 * 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.002131/0.26, allocations: 1.068 MB / 433.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002386/0.2602, allocations: 80.09 kB / 433.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2602, allocations: 8.062 kB / 433.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.816e-05/0.2603, allocations: 39.97 kB / 433.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.2607, allocations: 76.17 kB / 433.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.2634, allocations: 2.272 MB / 435.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2636, allocations: 148 kB / 435.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.894e-05/0.2636, allocations: 25.62 kB / 435.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.2637, allocations: 67.41 kB / 436 MB, free: 1.262 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2637, allocations: 0 / 436 MB, free: 1.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.291, allocations: 5.895 MB / 441.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.05, allocations: 14.09 kB / 441.9 MB, free: 11.46 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.433834951953031] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 11.256696430034935 11.270335058 11.017118988 Calling exit ...