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.001168/0.001168, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001077/0.001077, allocations: 192.3 kB / 16.13 MB, free: 6.699 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.188/1.188, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005279/0.005279, allocations: 0.9887 MB / 291 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000994/0.000994, allocations: 59.91 kB / 351.4 MB, free: 2.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08294/0.08395, allocations: 49.66 MB / 401 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.1378/0.2218, allocations: 1.414 MB / 402.4 MB, free: 9.957 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.2228, allocations: 0.7908 MB / 403.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.2228, allocations: 0 / 403.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.597e-05/0.2229, allocations: 5.625 kB / 403.2 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.223, allocations: 6.203 kB / 403.2 MB, free: 9.57 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.0002284/0.2233, allocations: 42.8 kB / 403.3 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.457e-05/0.2233, allocations: 26.08 kB / 403.3 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.865e-05/0.2234, allocations: 2.625 kB / 403.3 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.895e-05/0.2234, allocations: 13.31 kB / 403.3 MB, free: 9.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.837e-05/0.2235, allocations: 16.31 kB / 403.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.2235, allocations: 1.844 kB / 403.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.2236, allocations: 50.19 kB / 403.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.2237, allocations: 1.078 kB / 403.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.217e-05/0.2237, allocations: 18.5 kB / 403.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.2238, allocations: 55.39 kB / 403.5 MB, free: 9.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2239, allocations: 4.562 kB / 403.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2239, allocations: 0.75 kB / 403.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.2239, allocations: 0.5625 kB / 403.5 MB, free: 9.473 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.0003261/0.2242, allocations: 373.8 kB / 403.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.2242, allocations: 9.125 kB / 403.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.152e-05/0.2243, allocations: 4.094 kB / 403.9 MB, free: 9.074 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.138e-05/0.2244, allocations: 169.1 kB / 404 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.2244, allocations: 5.125 kB / 404 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.2244, allocations: 3.531 kB / 404 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.2245, allocations: 52.77 kB / 404.1 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.2245, allocations: 192 / 404.1 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2246, allocations: 5.375 kB / 404.1 MB, free: 8.824 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.2246, allocations: 0 / 404.1 MB, free: 8.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.32e-05/0.2246, allocations: 19.12 kB / 404.1 MB, free: 8.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.2248, allocations: 157 kB / 404.3 MB, free: 8.629 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.299e-05/0.2248, allocations: 32.39 kB / 404.3 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.013e-05/0.2249, allocations: 23.83 kB / 404.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.2249, allocations: 0.75 kB / 404.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001322/0.2251, allocations: 142.7 kB / 404.4 MB, free: 8.438 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.2251, allocations: 0 / 404.4 MB, free: 8.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002717/0.2253, allocations: 131.9 kB / 404.6 MB, free: 8.352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.2254, allocations: 135.3 kB / 404.7 MB, free: 8.191 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.048e-05/0.2255, allocations: 110.4 kB / 404.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.2255, allocations: 27.39 kB / 404.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.839e-05/0.2255, allocations: 85.61 kB / 404.9 MB, free: 7.969 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.2255, allocations: 7.359 kB / 404.9 MB, free: 7.965 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.2256, allocations: 19.81 kB / 405 MB, free: 7.945 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.2256, allocations: 317.8 kB / 405.3 MB, free: 7.629 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.722e-05/0.2257, allocations: 13.75 kB / 405.3 MB, free: 7.625 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.687e-05/0.2257, allocations: 28.41 kB / 405.3 MB, free: 7.602 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.2258, allocations: 95.47 kB / 405.4 MB, free: 7.516 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2258, allocations: 0 / 405.4 MB, free: 7.516 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001516/0.226, allocations: 110.6 kB / 405.5 MB, free: 7.434 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.226, allocations: 41.14 kB / 405.5 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.226, allocations: 5.531 kB / 405.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.2261, allocations: 0 / 405.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.353e-05/0.2261, allocations: 7.172 kB / 405.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2261, allocations: 0.7031 kB / 405.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.888e-05/0.2262, allocations: 4.094 kB / 405.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.2262, allocations: 3.094 kB / 405.6 MB, free: 7.391 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 9.281e-05/0.2263, allocations: 149.3 kB / 405.7 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.2263, allocations: 9.156 kB / 405.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.777e-05/0.2263, allocations: 12.66 kB / 405.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2263, allocations: 2.172 kB / 405.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2264, allocations: 1.156 kB / 405.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2264, allocations: 0.7969 kB / 405.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.861e-05/0.2264, allocations: 165.2 kB / 405.9 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2264, allocations: 0.875 kB / 405.9 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.674e-05/0.2265, allocations: 4.484 kB / 405.9 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2265, allocations: 3.938 kB / 405.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.2265, allocations: 2.594 kB / 405.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2265, allocations: 1.188 kB / 405.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2265, allocations: 4.75 kB / 405.9 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.2267, allocations: 152.8 kB / 406.1 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.687e-05/0.2267, allocations: 79 kB / 406.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.2268, allocations: 6.953 kB / 406.1 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.422e-05/0.2268, allocations: 5.438 kB / 406.2 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.2268, allocations: 2.469 kB / 406.2 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2269, allocations: 7.266 kB / 406.2 MB, free: 6.797 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.764e-05/0.2269, allocations: 88.5 kB / 406.3 MB, free: 6.719 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2269, allocations: 7.875 kB / 406.3 MB, free: 6.711 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000213/0.2271, allocations: 25.91 kB / 406.3 MB, free: 6.703 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.0003197/0.2274, allocations: 206.4 kB / 406.5 MB, free: 6.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.2276, allocations: 97.75 kB / 406.6 MB, free: 6.516 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2276, allocations: 128 / 406.6 MB, free: 6.516 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.143e-05/0.2277, allocations: 92.48 kB / 406.7 MB, free: 6.438 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.2279, allocations: 15.42 kB / 406.7 MB, free: 6.43 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002243/0.2281, allocations: 129 kB / 406.8 MB, free: 6.305 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.623e-05/0.2282, allocations: 0.6797 MB / 407.5 MB, free: 5.609 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.683e-05/0.2282, allocations: 1.797 kB / 407.5 MB, free: 5.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.225e-05/0.2282, allocations: 12.84 kB / 407.5 MB, free: 5.598 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2282, allocations: 1.094 kB / 407.5 MB, free: 5.598 MB / 286.1 MB Notification: Performance of Templates: time 0.002751/0.231, allocations: 0.8212 MB / 408.3 MB, free: 5.48 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)