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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0008291/0.000829, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007652/0.007652, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005985/0.005985, allocations: 0.9963 MB / 292.4 MB, free: 1.129 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 8 kB / 353.8 MB, free: 2.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3556, allocations: 50.62 MB / 404.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001997/0.3577, allocations: 1.097 MB / 405.5 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.3592, allocations: 0.7881 MB / 406.3 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.443e-05/0.3592, allocations: 1.344 kB / 406.3 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.103e-05/0.3592, allocations: 0 / 406.3 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.3594, allocations: 6.562 kB / 406.3 MB, free: 9.648 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0002881/0.3597, allocations: 37.41 kB / 406.4 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.374e-05/0.3598, allocations: 20.7 kB / 406.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.798e-05/0.3599, allocations: 6.688 kB / 406.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.514e-05/0.3599, allocations: 15.38 kB / 406.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.36, allocations: 16.33 kB / 406.4 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.3601, allocations: 1.375 kB / 406.4 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.3602, allocations: 44.52 kB / 406.5 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.3602, allocations: 1.578 kB / 406.5 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.573e-05/0.3603, allocations: 46.61 kB / 406.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.3604, allocations: 53.8 kB / 406.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3604, allocations: 0.9375 kB / 406.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3604, allocations: 0 / 406.6 MB, free: 9.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.3605, allocations: 0 / 406.6 MB, free: 9.543 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.0004335/0.3609, allocations: 376.5 kB / 406.9 MB, free: 9.141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3609, allocations: 8.375 kB / 406.9 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.971e-05/0.361, allocations: 4.781 kB / 406.9 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.3611, allocations: 178.3 kB / 407.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.3611, allocations: 2.344 kB / 407.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.3612, allocations: 2.562 kB / 407.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.3613, allocations: 46.53 kB / 407.2 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3613, allocations: 4.188 kB / 407.2 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3613, allocations: 5.125 kB / 407.2 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3614, allocations: 1 kB / 407.2 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.472e-05/0.3614, allocations: 25.02 kB / 407.2 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.3616, allocations: 157.6 kB / 407.4 MB, free: 8.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.335e-05/0.3617, allocations: 40.19 kB / 407.4 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.922e-05/0.3618, allocations: 21.42 kB / 407.4 MB, free: 8.645 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/0.3618, allocations: 1.281 kB / 407.4 MB, free: 8.645 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.362, allocations: 141.1 kB / 407.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.623e-06/0.362, allocations: 0 / 407.6 MB, free: 8.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.000347/0.3623, allocations: 144.2 kB / 407.7 MB, free: 8.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.3624, allocations: 130.6 kB / 407.8 MB, free: 8.254 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.507e-05/0.3625, allocations: 107.1 kB / 407.9 MB, free: 8.152 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.3625, allocations: 30.64 kB / 408 MB, free: 8.117 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.53e-05/0.3625, allocations: 87.41 kB / 408 MB, free: 8.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.3625, allocations: 10.16 kB / 408.1 MB, free: 8.023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.3626, allocations: 16.56 kB / 408.1 MB, free: 8.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.3626, allocations: 317.6 kB / 408.4 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.206e-05/0.3627, allocations: 14.7 kB / 408.4 MB, free: 7.684 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.716e-05/0.3628, allocations: 28.19 kB / 408.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.363, allocations: 108.5 kB / 408.5 MB, free: 7.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.363, allocations: 1.031 kB / 408.5 MB, free: 7.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001797/0.3632, allocations: 101 kB / 408.6 MB, free: 7.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.3632, allocations: 37.5 kB / 408.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3632, allocations: 0.6562 kB / 408.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3632, allocations: 1.125 kB / 408.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.047e-05/0.3633, allocations: 11.44 kB / 408.7 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3633, allocations: 4.062 kB / 408.7 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.213e-05/0.3634, allocations: 10.8 kB / 408.7 MB, free: 7.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.3634, allocations: 6.5 kB / 408.7 MB, free: 7.449 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.0001572/0.3636, allocations: 149.6 kB / 408.8 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.3636, allocations: 7.953 kB / 408.9 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.231e-05/0.3636, allocations: 10.86 kB / 408.9 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3636, allocations: 0 / 408.9 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3637, allocations: 4.656 kB / 408.9 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3637, allocations: 1.156 kB / 408.9 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.39e-05/0.3638, allocations: 162 kB / 409 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3638, allocations: 0.6094 kB / 409 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.691e-05/0.3638, allocations: 4.141 kB / 409 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3638, allocations: 5.406 kB / 409 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3638, allocations: 2.156 kB / 409 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3638, allocations: 1.5 kB / 409 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3638, allocations: 0 / 409 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.3641, allocations: 159.1 kB / 409.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.809e-05/0.3641, allocations: 79.91 kB / 409.3 MB, free: 6.867 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.3641, allocations: 18.11 kB / 409.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.791e-05/0.3642, allocations: 6.344 kB / 409.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.3642, allocations: 2.734 kB / 409.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.3642, allocations: 4.5 kB / 409.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.203e-05/0.3643, allocations: 95.52 kB / 409.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3643, allocations: 0 / 409.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.3645, allocations: 22.62 kB / 409.4 MB, free: 6.762 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.0004044/0.365, allocations: 208.7 kB / 409.6 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.3652, allocations: 101.7 kB / 409.7 MB, free: 6.566 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3652, allocations: 8.062 kB / 409.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.3653, allocations: 93.42 kB / 409.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.3654, allocations: 6.016 kB / 409.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002829/0.3657, allocations: 129 kB / 410 MB, free: 6.363 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.3658, allocations: 0.6841 MB / 410.6 MB, free: 5.664 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.548e-05/0.3659, allocations: 5.25 kB / 410.6 MB, free: 5.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.23e-05/0.3659, allocations: 9.781 kB / 410.7 MB, free: 5.652 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3659, allocations: 0 / 410.7 MB, free: 5.652 MB / 286.1 MB Notification: Performance of Templates: time 0.003765/0.3697, allocations: 0.8181 MB / 411.5 MB, free: 5.531 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: