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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 113.9 kB / 17.61 MB, free: 4.684 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.001328/0.001328, allocations: 185.9 kB / 20.78 MB, free: 1.52 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.447/1.447, allocations: 225.6 MB / 249.4 MB, free: 3.141 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.00661/0.00661, allocations: 1.01 MB / 305.5 MB, free: 3.438 MB / 238.1 MB " [Timeout remaining time 180] 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.001932/0.001932, allocations: 67.89 kB / 425.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3503, allocations: 52.35 MB / 477.7 MB, free: 28.49 MB / 366.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002148/0.3525, allocations: 1.389 MB / 479.1 MB, free: 27.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.3536, allocations: 0.8766 MB / 480 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.312e-05/0.3536, allocations: 0 / 480 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.453e-05/0.3536, allocations: 3.938 kB / 480 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002077/0.3538, allocations: 15 kB / 480 MB, free: 26.89 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.0002652/0.3541, allocations: 48.5 kB / 480 MB, free: 26.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.766e-05/0.3542, allocations: 20.64 kB / 480.1 MB, free: 26.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.682e-05/0.3542, allocations: 0 / 480.1 MB, free: 26.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.039e-05/0.3543, allocations: 21.36 kB / 480.1 MB, free: 26.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.3544, allocations: 14.3 kB / 480.1 MB, free: 26.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.3544, allocations: 7.219 kB / 480.1 MB, free: 26.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3545, allocations: 42.34 kB / 480.1 MB, free: 26.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.3545, allocations: 4 kB / 480.1 MB, free: 26.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.829e-05/0.3546, allocations: 10.7 kB / 480.1 MB, free: 26.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.3547, allocations: 68.44 kB / 480.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3547, allocations: 0 / 480.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3547, allocations: 3.938 kB / 480.2 MB, free: 26.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.3547, allocations: 0 / 480.2 MB, free: 26.79 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.0004343/0.3552, allocations: 374.3 kB / 480.6 MB, free: 26.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3552, allocations: 13.53 kB / 480.6 MB, free: 26.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.054e-05/0.3552, allocations: 8.109 kB / 480.6 MB, free: 26.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.3554, allocations: 171.1 kB / 480.8 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.3554, allocations: 384 / 480.8 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.3554, allocations: 3.656 kB / 480.8 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.3555, allocations: 43.52 kB / 480.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3555, allocations: 192 / 480.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.3555, allocations: 3.938 kB / 480.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3555, allocations: 0 / 480.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.03e-05/0.3556, allocations: 23.72 kB / 480.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001534/0.3558, allocations: 160.3 kB / 481 MB, free: 25.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.801e-05/0.3558, allocations: 31.34 kB / 481 MB, free: 25.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.516e-05/0.3559, allocations: 18.41 kB / 481.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.3559, allocations: 0 / 481.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.3561, allocations: 147.1 kB / 481.2 MB, free: 25.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.3561, allocations: 0 / 481.2 MB, free: 25.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003007/0.3564, allocations: 130.6 kB / 481.3 MB, free: 25.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.3564, allocations: 132 kB / 481.5 MB, free: 25.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.509e-05/0.3565, allocations: 107.2 kB / 481.6 MB, free: 25.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.3565, allocations: 32.83 kB / 481.6 MB, free: 25.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.584e-05/0.3565, allocations: 80.14 kB / 481.7 MB, free: 25.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.3565, allocations: 19.11 kB / 481.7 MB, free: 25.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.97e-05/0.3566, allocations: 21.16 kB / 481.7 MB, free: 25.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.3566, allocations: 321.4 kB / 482 MB, free: 24.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.295e-05/0.3567, allocations: 9.766 kB / 482 MB, free: 24.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.139e-05/0.3567, allocations: 23.52 kB / 482.1 MB, free: 24.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.3569, allocations: 106.2 kB / 482.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3569, allocations: 0 / 482.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001352/0.357, allocations: 100.2 kB / 482.3 MB, free: 24.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.357, allocations: 41.56 kB / 482.3 MB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.357, allocations: 0 / 482.3 MB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.357, allocations: 7 kB / 482.3 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.227e-05/0.3571, allocations: 6.875 kB / 482.3 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3571, allocations: 3.375 kB / 482.3 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.794e-05/0.3572, allocations: 10.11 kB / 482.3 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.3572, allocations: 4 kB / 482.3 MB, free: 24.69 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 0.0001395/0.3573, allocations: 147.7 kB / 482.5 MB, free: 24.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.3573, allocations: 6.906 kB / 482.5 MB, free: 24.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.226e-05/0.3573, allocations: 8 kB / 482.5 MB, free: 24.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3573, allocations: 0 / 482.5 MB, free: 24.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3574, allocations: 0 / 482.5 MB, free: 24.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3574, allocations: 3 kB / 482.5 MB, free: 24.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.715e-05/0.3574, allocations: 161.5 kB / 482.6 MB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3574, allocations: 4 kB / 482.6 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.52e-05/0.3575, allocations: 3.031 kB / 482.7 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3575, allocations: 4.188 kB / 482.7 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.3575, allocations: 6.312 kB / 482.7 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3575, allocations: 4 kB / 482.7 MB, free: 24.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3575, allocations: 0 / 482.7 MB, free: 24.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.3577, allocations: 153.9 kB / 482.8 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.421e-05/0.3577, allocations: 84.02 kB / 482.9 MB, free: 24.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.3577, allocations: 6.969 kB / 482.9 MB, free: 24.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.117e-05/0.3578, allocations: 6.094 kB / 482.9 MB, free: 24.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.3578, allocations: 0 / 482.9 MB, free: 24.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.3578, allocations: 3 kB / 482.9 MB, free: 24.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.703e-05/0.3579, allocations: 91.52 kB / 483 MB, free: 24.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3579, allocations: 0 / 483 MB, free: 24.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.3581, allocations: 22.84 kB / 483 MB, free: 24.02 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.0004539/0.3585, allocations: 210.2 kB / 483.2 MB, free: 23.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001867/0.3587, allocations: 96.05 kB / 483.3 MB, free: 23.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3587, allocations: 3.938 kB / 483.3 MB, free: 23.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.625e-05/0.3588, allocations: 77.77 kB / 483.4 MB, free: 23.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001589/0.359, allocations: 7.031 kB / 483.4 MB, free: 23.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.3593, allocations: 128.2 kB / 483.5 MB, free: 23.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.3594, allocations: 0.6888 MB / 484.2 MB, free: 22.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.601e-05/0.3594, allocations: 0 / 484.2 MB, free: 22.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.549e-05/0.3594, allocations: 10.44 kB / 484.2 MB, free: 22.91 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3594, allocations: 0 / 484.2 MB, free: 22.91 MB / 366.1 MB Notification: Performance of Templates: time 0.003576/0.363, allocations: 0.9267 MB / 485.2 MB, free: 22.78 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] [Calling sys.exit(0), Time elapsed: 4.645006151869893]