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.007773/0.007773, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001615/0.001615, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.006481/0.006481, allocations: 0.9993 MB / 291.5 MB, free: 1.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 65.88 kB / 403 MB, free: 9.633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08641/0.08771, allocations: 49.65 MB / 452.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002209/0.08996, allocations: 1.364 MB / 454 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.09108, allocations: 0.8128 MB / 454.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.849e-05/0.09112, allocations: 0 / 454.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.113e-05/0.09115, allocations: 7.938 kB / 454.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.09132, allocations: 7.922 kB / 454.8 MB, free: 2.332 MB / 318.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.000236/0.09156, allocations: 47.88 kB / 454.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.566e-05/0.09165, allocations: 19.92 kB / 454.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.394e-05/0.09169, allocations: 7.938 kB / 454.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.004e-05/0.09173, allocations: 8 kB / 454.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.09183, allocations: 15.86 kB / 454.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.09186, allocations: 8 kB / 454.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.09197, allocations: 43.95 kB / 454.9 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.09199, allocations: 8 kB / 455 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.073e-05/0.09203, allocations: 11.88 kB / 455 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.09217, allocations: 63.84 kB / 455 MB, free: 2.102 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.09218, allocations: 0 / 455 MB, free: 2.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09219, allocations: 0 / 455 MB, free: 2.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.0922, allocations: 0 / 455 MB, free: 2.102 MB / 318.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.000385/0.09259, allocations: 373.1 kB / 455.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.09263, allocations: 12.03 kB / 455.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.137e-05/0.09267, allocations: 4.938 kB / 455.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.0928, allocations: 172.2 kB / 455.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.09282, allocations: 4.359 kB / 455.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.09284, allocations: 4.375 kB / 455.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.09298, allocations: 42.25 kB / 455.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.09299, allocations: 192 / 455.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.09301, allocations: 7.938 kB / 455.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.09302, allocations: 0 / 455.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.77e-05/0.09311, allocations: 15.98 kB / 455.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.09327, allocations: 169.7 kB / 455.8 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.755e-05/0.09336, allocations: 34.55 kB / 455.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.283e-05/0.09342, allocations: 20.92 kB / 455.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.09344, allocations: 3.938 kB / 455.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001555/0.0936, allocations: 144.5 kB / 456 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 2.885e-06/0.09361, allocations: 3.984 kB / 456 MB, free: 0.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002903/0.0939, allocations: 131.2 kB / 456.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.09397, allocations: 132.5 kB / 456.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.333e-05/0.09405, allocations: 117.8 kB / 456.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.09408, allocations: 29.64 kB / 456.4 MB, free: 468 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.951e-05/0.09411, allocations: 84.14 kB / 456.5 MB, free: 380 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.09414, allocations: 7.906 kB / 456.5 MB, free: 372 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.09418, allocations: 25.73 kB / 456.5 MB, free: 340 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.09428, allocations: 314.8 kB / 456.8 MB, free: 16 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.524e-05/0.09433, allocations: 11.98 kB / 456.9 MB, free: 4 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.838e-05/0.0944, allocations: 21.77 kB / 456.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.09455, allocations: 105 kB / 457 MB, free: 15.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.09457, allocations: 0 / 457 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001571/0.09473, allocations: 103.3 kB / 457.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.09477, allocations: 41.64 kB / 457.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.09478, allocations: 0 / 457.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.0948, allocations: 0 / 457.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.421e-05/0.09487, allocations: 4 kB / 457.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.09488, allocations: 7.938 kB / 457.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.705e-05/0.09492, allocations: 3.984 kB / 457.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.09494, allocations: 8.062 kB / 457.1 MB, free: 15.67 MB / 334.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.000127/0.09507, allocations: 151.4 kB / 457.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.09509, allocations: 7.938 kB / 457.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.86e-05/0.09512, allocations: 7.969 kB / 457.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.09512, allocations: 0 / 457.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.09513, allocations: 0 / 457.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.09514, allocations: 0 / 457.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.09525, allocations: 161.7 kB / 457.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.09525, allocations: 0 / 457.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.645e-05/0.09529, allocations: 8 kB / 457.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.0953, allocations: 4.188 kB / 457.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.09531, allocations: 7.984 kB / 457.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.09532, allocations: 4 kB / 457.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09533, allocations: 0 / 457.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.09553, allocations: 150.7 kB / 457.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.09558, allocations: 81.11 kB / 457.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.09561, allocations: 7.969 kB / 457.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.567e-05/0.09565, allocations: 7.984 kB / 457.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.09569, allocations: 4 kB / 457.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.09571, allocations: 0 / 457.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.353e-05/0.09576, allocations: 99.14 kB / 457.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09576, allocations: 0 / 457.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000217/0.09599, allocations: 24 kB / 457.9 MB, free: 14.85 MB / 334.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.0003462/0.09634, allocations: 203.5 kB / 458.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001858/0.09653, allocations: 95.39 kB / 458.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.09655, allocations: 0 / 458.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.593e-05/0.09665, allocations: 95.31 kB / 458.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.09679, allocations: 8 kB / 458.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002434/0.09704, allocations: 121.5 kB / 458.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.09727, allocations: 0.6885 MB / 459.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.675e-05/0.09729, allocations: 4 kB / 459.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.449e-05/0.09731, allocations: 7.438 kB / 459.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09732, allocations: 0 / 459.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of Templates: time 0.003079/0.1004, allocations: 0.9084 MB / 460 MB, free: 12.69 MB / 334.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)