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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007515/0.0007516, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008743/0.0008742, allocations: 178.3 kB / 16.92 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005798/0.005798, allocations: 0.995 MB / 293.1 MB, free: 1.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.000307, allocations: 8 kB / 354.5 MB, free: 2.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2408, allocations: 50.62 MB / 405.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001476/0.2423, allocations: 1.095 MB / 406.2 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.2434, allocations: 0.7813 MB / 407 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.102e-05/0.2435, allocations: 3.219 kB / 407 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.2435, allocations: 7.875 kB / 407 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.2436, allocations: 6.781 kB / 407 MB, free: 9.625 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002352/0.2439, allocations: 40.53 kB / 407 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.347e-05/0.2439, allocations: 22.59 kB / 407 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.697e-05/0.244, allocations: 5.844 kB / 407 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.991e-05/0.244, allocations: 10.75 kB / 407.1 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.2441, allocations: 18.19 kB / 407.1 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.738e-06/0.2441, allocations: 1.5 kB / 407.1 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.2442, allocations: 47.86 kB / 407.1 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.2443, allocations: 2.234 kB / 407.1 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.243e-05/0.2443, allocations: 43.06 kB / 407.2 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.2444, allocations: 37.53 kB / 407.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2444, allocations: 1.062 kB / 407.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2444, allocations: 0.75 kB / 407.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.2445, allocations: 0 / 407.2 MB, free: 9.523 MB / 286.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.0003431/0.2448, allocations: 376 kB / 407.6 MB, free: 9.121 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.2448, allocations: 9.844 kB / 407.6 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.268e-05/0.2449, allocations: 3.891 kB / 407.6 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.316e-05/0.245, allocations: 169.1 kB / 407.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.245, allocations: 1.5 kB / 407.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.245, allocations: 2.281 kB / 407.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.2451, allocations: 50.66 kB / 407.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2451, allocations: 6.469 kB / 407.8 MB, free: 8.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.2452, allocations: 3.938 kB / 407.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.2452, allocations: 0 / 407.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.113e-05/0.2453, allocations: 23.03 kB / 407.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001085/0.2454, allocations: 156.7 kB / 408 MB, free: 8.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.448e-05/0.2455, allocations: 35.61 kB / 408 MB, free: 8.648 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.925e-05/0.2455, allocations: 23.22 kB / 408.1 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.2455, allocations: 1.031 kB / 408.1 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.2457, allocations: 144.3 kB / 408.2 MB, free: 8.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.352e-06/0.2457, allocations: 3.938 kB / 408.2 MB, free: 8.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003074/0.246, allocations: 138.8 kB / 408.3 MB, free: 8.398 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.2461, allocations: 132.4 kB / 408.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.068e-05/0.2461, allocations: 106.6 kB / 408.6 MB, free: 8.141 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.168e-06/0.2462, allocations: 26.8 kB / 408.6 MB, free: 8.109 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.006e-05/0.2462, allocations: 89 kB / 408.7 MB, free: 8.023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.2462, allocations: 9.844 kB / 408.7 MB, free: 8.016 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-05/0.2462, allocations: 20 kB / 408.7 MB, free: 7.992 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.143e-05/0.2463, allocations: 317 kB / 409 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.93e-05/0.2463, allocations: 19.16 kB / 409 MB, free: 7.668 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.681e-05/0.2464, allocations: 27.11 kB / 409.1 MB, free: 7.648 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.2465, allocations: 106.4 kB / 409.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2465, allocations: 0 / 409.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001596/0.2467, allocations: 109.1 kB / 409.3 MB, free: 7.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.2467, allocations: 38.86 kB / 409.3 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2468, allocations: 0 / 409.3 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2468, allocations: 1.094 kB / 409.3 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.638e-05/0.2468, allocations: 11.17 kB / 409.3 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2469, allocations: 1.375 kB / 409.3 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.444e-05/0.2469, allocations: 13.39 kB / 409.3 MB, free: 7.438 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.2469, allocations: 3.797 kB / 409.3 MB, free: 7.438 MB / 286.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.0001053/0.247, allocations: 152.5 kB / 409.5 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.2471, allocations: 8.188 kB / 409.5 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.909e-05/0.2471, allocations: 10.05 kB / 409.5 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2471, allocations: 4 kB / 409.5 MB, free: 7.262 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2471, allocations: 5.125 kB / 409.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2471, allocations: 0.7031 kB / 409.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.528e-05/0.2472, allocations: 160.9 kB / 409.7 MB, free: 7.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2472, allocations: 0.7031 kB / 409.7 MB, free: 7.066 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.938e-05/0.2472, allocations: 5.344 kB / 409.7 MB, free: 7.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.2472, allocations: 3.938 kB / 409.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.2473, allocations: 3 kB / 409.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2473, allocations: 0.75 kB / 409.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2473, allocations: 1.094 kB / 409.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000205/0.2475, allocations: 154.2 kB / 409.8 MB, free: 6.945 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.124e-05/0.2475, allocations: 78.8 kB / 409.9 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.855e-05/0.2475, allocations: 11.7 kB / 409.9 MB, free: 6.844 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.945e-05/0.2476, allocations: 6.359 kB / 409.9 MB, free: 6.844 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.2476, allocations: 6.281 kB / 409.9 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.2476, allocations: 7.812 kB / 409.9 MB, free: 6.836 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.094e-05/0.2477, allocations: 87.39 kB / 410 MB, free: 6.758 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2477, allocations: 0 / 410 MB, free: 6.758 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.2479, allocations: 23.17 kB / 410.1 MB, free: 6.754 MB / 286.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.0003604/0.2483, allocations: 220.1 kB / 410.3 MB, free: 6.617 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001863/0.2485, allocations: 103.3 kB / 410.4 MB, free: 6.543 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2485, allocations: 0 / 410.4 MB, free: 6.543 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.092e-05/0.2486, allocations: 94.69 kB / 410.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.2487, allocations: 5.797 kB / 410.5 MB, free: 6.465 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002387/0.249, allocations: 161.3 kB / 410.6 MB, free: 6.312 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.278e-05/0.2491, allocations: 0.6873 MB / 411.3 MB, free: 5.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.43e-05/0.2491, allocations: 8.406 kB / 411.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2491, allocations: 0 / 411.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of Templates: time 0.002464/0.2516, allocations: 0.9793 MB / 412.3 MB, free: 5.512 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile (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)