Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 107.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 249.9 MB, free: 3.246 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.00677/0.00677, allocations: 1.018 MB / 306 MB, free: 3.527 MB / 238.1 MB [Timeout remaining time 90] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo) 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: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 59.91 kB / 425.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2464, allocations: 52.35 MB / 478.1 MB, free: 28.63 MB / 366.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.00219/0.2486, allocations: 1.388 MB / 479.5 MB, free: 27.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009807/0.2496, allocations: 0.8519 MB / 480.3 MB, free: 27.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.634e-05/0.2496, allocations: 0 / 480.3 MB, free: 27.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.473e-05/0.2496, allocations: 3.938 kB / 480.3 MB, free: 27.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.2498, allocations: 18.52 kB / 480.4 MB, free: 27.05 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.25, allocations: 43.27 kB / 480.4 MB, free: 27.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.208e-05/0.2501, allocations: 27.33 kB / 480.4 MB, free: 27.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.2501, allocations: 0 / 480.4 MB, free: 27.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.868e-05/0.2501, allocations: 13.11 kB / 480.4 MB, free: 27.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.2503, allocations: 29 kB / 480.5 MB, free: 26.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.2503, allocations: 0 / 480.5 MB, free: 26.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.665e-05/0.2504, allocations: 40.88 kB / 480.5 MB, free: 26.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.989e-06/0.2504, allocations: 0 / 480.5 MB, free: 26.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.2504, allocations: 15.11 kB / 480.5 MB, free: 26.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.2505, allocations: 70.88 kB / 480.6 MB, free: 26.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.2505, allocations: 0 / 480.6 MB, free: 26.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2505, allocations: 0 / 480.6 MB, free: 26.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.507e-06/0.2505, allocations: 0 / 480.6 MB, free: 26.94 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003409/0.2509, allocations: 375.5 kB / 481 MB, free: 26.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.2509, allocations: 15.25 kB / 481 MB, free: 26.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.2509, allocations: 4.891 kB / 481 MB, free: 26.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.666e-05/0.251, allocations: 171.2 kB / 481.1 MB, free: 26.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.251, allocations: 3.375 kB / 481.1 MB, free: 26.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.251, allocations: 3.75 kB / 481.2 MB, free: 26.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.2512, allocations: 42.38 kB / 481.2 MB, free: 26.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2512, allocations: 192 / 481.2 MB, free: 26.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.2512, allocations: 3.938 kB / 481.2 MB, free: 26.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2512, allocations: 3.984 kB / 481.2 MB, free: 26.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.534e-05/0.2512, allocations: 23.45 kB / 481.2 MB, free: 26.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001213/0.2514, allocations: 154.9 kB / 481.4 MB, free: 26.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.736e-05/0.2514, allocations: 38.98 kB / 481.4 MB, free: 26.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.244e-05/0.2515, allocations: 14.17 kB / 481.4 MB, free: 26.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-06/0.2515, allocations: 0 / 481.4 MB, free: 26.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001387/0.2516, allocations: 152.6 kB / 481.6 MB, free: 25.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 1.403e-06/0.2516, allocations: 3.062 kB / 481.6 MB, free: 25.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002681/0.2519, allocations: 125.3 kB / 481.7 MB, free: 25.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.2519, allocations: 139.3 kB / 481.8 MB, free: 25.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.507e-05/0.252, allocations: 103.8 kB / 481.9 MB, free: 25.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.252, allocations: 28.86 kB / 482 MB, free: 25.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.709e-05/0.252, allocations: 84.14 kB / 482 MB, free: 25.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.252, allocations: 19.22 kB / 482.1 MB, free: 25.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/0.2521, allocations: 20.16 kB / 482.1 MB, free: 25.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.87e-05/0.2521, allocations: 313.9 kB / 482.4 MB, free: 25.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.192e-05/0.2521, allocations: 13.78 kB / 482.4 MB, free: 25.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.519e-05/0.2522, allocations: 19.69 kB / 482.4 MB, free: 25.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.2523, allocations: 110.7 kB / 482.5 MB, free: 24.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2523, allocations: 0 / 482.5 MB, free: 24.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001392/0.2524, allocations: 101.4 kB / 482.6 MB, free: 24.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.2525, allocations: 38.48 kB / 482.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2525, allocations: 0 / 482.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2525, allocations: 0 / 482.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.126e-05/0.2525, allocations: 13.7 kB / 482.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.2525, allocations: 0 / 482.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.714e-05/0.2526, allocations: 11.2 kB / 482.7 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.2526, allocations: 3.562 kB / 482.7 MB, free: 24.84 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) "End value of step.y right after switching" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,y_start,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 9.356e-05/0.2527, allocations: 148.9 kB / 482.8 MB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.2527, allocations: 10.84 kB / 482.9 MB, free: 24.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.685e-05/0.2527, allocations: 7.969 kB / 482.9 MB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2527, allocations: 2.781 kB / 482.9 MB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2527, allocations: 0 / 482.9 MB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.2527, allocations: 0 / 482.9 MB, free: 24.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.75e-05/0.2528, allocations: 162.3 kB / 483 MB, free: 24.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2528, allocations: 7.188 kB / 483 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.507e-05/0.2528, allocations: 0 / 483 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2528, allocations: 7.125 kB / 483 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.2528, allocations: 0 / 483 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2528, allocations: 0 / 483 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2528, allocations: 3.375 kB / 483 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/0.253, allocations: 151.1 kB / 483.2 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.253, allocations: 84.56 kB / 483.3 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.253, allocations: 6.875 kB / 483.3 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.249e-05/0.2531, allocations: 3 kB / 483.3 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.2531, allocations: 7 kB / 483.3 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.2531, allocations: 6.547 kB / 483.3 MB, free: 24.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.557e-05/0.2531, allocations: 93.31 kB / 483.4 MB, free: 24.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2531, allocations: 0 / 483.4 MB, free: 24.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002181/0.2534, allocations: 22.36 kB / 483.4 MB, free: 24.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.000417/0.2538, allocations: 209.4 kB / 483.6 MB, free: 24.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001742/0.254, allocations: 100.5 kB / 483.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.254, allocations: 0 / 483.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.026e-05/0.254, allocations: 70.78 kB / 483.8 MB, free: 23.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.2542, allocations: 6.062 kB / 483.8 MB, free: 23.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002305/0.2544, allocations: 154.8 kB / 483.9 MB, free: 23.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.426e-05/0.2545, allocations: 0.6928 MB / 484.6 MB, free: 23.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.2545, allocations: 10.44 kB / 484.6 MB, free: 23.02 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2545, allocations: 0 / 484.6 MB, free: 23.02 MB / 366.1 MB Notification: Performance of Templates: time 0.002331/0.2568, allocations: 1.008 MB / 485.6 MB, free: 22.91 MB / 366.1 MB [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile [Timeout 660] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariables -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480]