Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 212.2 kB / 24.52 MB, free: 4.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.363/1.363, 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 47.92 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2313, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.0035/0.2348, allocations: 1.954 MB / 433.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.2371, allocations: 1.332 MB / 435.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.2372, allocations: 3.938 kB / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003351/0.2376, allocations: 71.66 kB / 435.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.238, allocations: 127.4 kB / 435.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007525/0.2387, allocations: 238.3 kB / 435.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.239, allocations: 187.5 kB / 435.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.2392, allocations: 27.83 kB / 435.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.2393, allocations: 83.58 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.2395, allocations: 91.66 kB / 436 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.2395, allocations: 12 kB / 436 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.2397, allocations: 67.95 kB / 436.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.2398, allocations: 63.7 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2399, allocations: 75.48 kB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.2403, allocations: 254.9 kB / 436.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2403, allocations: 0 / 436.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.2403, allocations: 0 / 436.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2403, allocations: 4 kB / 436.5 MB, free: 2.277 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.0008051/0.2411, allocations: 490.4 kB / 437 MB, free: 1.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.2411, allocations: 8.031 kB / 437 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.634e-05/0.2411, allocations: 4.188 kB / 437 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.974e-05/0.2412, allocations: 38.75 kB / 437 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.2412, allocations: 28.75 kB / 437 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.2417, allocations: 229.5 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.2417, allocations: 16.06 kB / 437.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.2417, allocations: 4 kB / 437.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/0.2421, allocations: 172.4 kB / 437.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.2421, allocations: 0 / 437.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2421, allocations: 0 / 437.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2421, allocations: 4 kB / 437.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.2422, allocations: 43.91 kB / 437.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005794/0.2428, allocations: 449.6 kB / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.2431, allocations: 142.5 kB / 438.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2432, allocations: 51.42 kB / 438.1 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.2432, allocations: 7.984 kB / 438.1 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.2434, allocations: 101 kB / 438.2 MB, free: 312 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.193e-06/0.2434, allocations: 7.875 kB / 438.2 MB, free: 304 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004161/0.2438, allocations: 173.4 kB / 438.4 MB, free: 124 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.244, allocations: 188.3 kB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.2444, allocations: 344.1 kB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.2444, allocations: 25.7 kB / 439 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.2445, allocations: 132.4 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.2445, allocations: 23.95 kB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.2446, allocations: 29.72 kB / 439.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.2448, allocations: 338.8 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.692e-05/0.2448, allocations: 31.98 kB / 439.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.245, allocations: 95.7 kB / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.2452, allocations: 97.08 kB / 439.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2452, allocations: 256 / 439.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002814/0.2454, allocations: 141.4 kB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.2455, allocations: 8 kB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2455, allocations: 160 / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.2455, allocations: 8 kB / 439.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2456, allocations: 23.92 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.2456, allocations: 7.938 kB / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.643e-05/0.2457, allocations: 15.89 kB / 439.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2457, allocations: 4 kB / 439.9 MB, free: 14.51 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.0001626/0.2459, allocations: 157.8 kB / 440 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.757e-05/0.246, allocations: 65.56 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.2463, allocations: 131.4 kB / 440.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.2463, allocations: 4 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2463, allocations: 3.938 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.2463, allocations: 8.031 kB / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.2465, allocations: 208.6 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2465, allocations: 4 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-05/0.2466, allocations: 15.98 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2466, allocations: 3.938 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.2466, allocations: 8 kB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2466, allocations: 4 kB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2466, allocations: 3.938 kB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.2469, allocations: 183.4 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.304e-05/0.247, allocations: 39.77 kB / 440.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.2471, allocations: 8 kB / 440.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.2471, allocations: 8.125 kB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.2472, allocations: 19.92 kB / 440.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.2472, allocations: 7.984 kB / 440.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002614/0.2475, allocations: 247.1 kB / 441 MB, free: 13.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2475, allocations: 7.938 kB / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002719/0.2477, allocations: 39.92 kB / 441 MB, free: 13.26 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.002013/0.2497, allocations: 1.026 MB / 442.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002514/0.25, allocations: 88.03 kB / 442.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.25, allocations: 0 / 442.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.752e-05/0.2501, allocations: 36.09 kB / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.2505, allocations: 85.84 kB / 442.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.2533, allocations: 2.28 MB / 444.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.2537, allocations: 0.7553 MB / 445.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.903e-05/0.2538, allocations: 29.64 kB / 445.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.2539, allocations: 63.41 kB / 445.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2539, allocations: 0 / 445.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.2812, allocations: 5.721 MB / 451.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.94, allocations: 7.984 kB / 451.1 MB, free: 3.238 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.2952429309953] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 11.161793918989133 11.176640907 10.933204947 Calling exit ...