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.0009621/0.0009621, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001089/0.001089, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.225/1.225, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.00566/0.00566, allocations: 1.007 MB / 291.1 MB, free: 1.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 67.89 kB / 351.5 MB, free: 2.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08478/0.08585, allocations: 49.66 MB / 401.2 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.1427/0.2285, allocations: 1.431 MB / 402.6 MB, free: 9.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009205/0.2295, allocations: 0.7867 MB / 403.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.311e-05/0.2295, allocations: 0 / 403.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.835e-05/0.2295, allocations: 0 / 403.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.2298, allocations: 7.625 kB / 403.4 MB, free: 9.453 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.0002495/0.23, allocations: 40.12 kB / 403.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.162e-05/0.2301, allocations: 25.55 kB / 403.5 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.304e-05/0.2301, allocations: 11.27 kB / 403.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.768e-05/0.2302, allocations: 8.094 kB / 403.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.347e-05/0.2303, allocations: 20.31 kB / 403.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.788e-06/0.2303, allocations: 2 kB / 403.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.2304, allocations: 46.42 kB / 403.6 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.047e-05/0.2304, allocations: 2.953 kB / 403.6 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.2304, allocations: 18.34 kB / 403.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.2306, allocations: 58.53 kB / 403.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2306, allocations: 0 / 403.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2306, allocations: 0 / 403.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.2306, allocations: 0 / 403.7 MB, free: 9.363 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.0003124/0.2309, allocations: 375.2 kB / 404 MB, free: 8.965 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2309, allocations: 9 kB / 404 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.964e-05/0.231, allocations: 3.406 kB / 404 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.23e-05/0.2311, allocations: 181.7 kB / 404.2 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.2311, allocations: 7.281 kB / 404.2 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.2311, allocations: 1.156 kB / 404.2 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.2312, allocations: 46.12 kB / 404.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.2312, allocations: 192 / 404.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.2312, allocations: 5.312 kB / 404.3 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2313, allocations: 1.062 kB / 404.3 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.051e-05/0.2313, allocations: 17.88 kB / 404.3 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.2315, allocations: 156.8 kB / 404.5 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.119e-05/0.2315, allocations: 34.11 kB / 404.5 MB, free: 8.484 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.739e-05/0.2316, allocations: 23.78 kB / 404.5 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.2316, allocations: 0.5938 kB / 404.5 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.2318, allocations: 138.6 kB / 404.6 MB, free: 8.324 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.2318, allocations: 0 / 404.6 MB, free: 8.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002669/0.2321, allocations: 134.9 kB / 404.8 MB, free: 8.234 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.2321, allocations: 132.6 kB / 404.9 MB, free: 8.078 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.37e-05/0.2322, allocations: 115.8 kB / 405 MB, free: 7.969 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-06/0.2322, allocations: 31.14 kB / 405 MB, free: 7.934 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.474e-05/0.2322, allocations: 80.75 kB / 405.1 MB, free: 7.852 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.2322, allocations: 8.172 kB / 405.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/0.2322, allocations: 18.7 kB / 405.2 MB, free: 7.828 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.513e-05/0.2323, allocations: 318.7 kB / 405.5 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.2323, allocations: 9.484 kB / 405.5 MB, free: 7.512 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.264e-05/0.2324, allocations: 27.7 kB / 405.5 MB, free: 7.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.2325, allocations: 103.4 kB / 405.6 MB, free: 7.398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2325, allocations: 0 / 405.6 MB, free: 7.398 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001345/0.2326, allocations: 106.3 kB / 405.7 MB, free: 7.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.2327, allocations: 36.95 kB / 405.7 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2327, allocations: 6.156 kB / 405.7 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.2327, allocations: 0 / 405.7 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.714e-05/0.2328, allocations: 10.27 kB / 405.8 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2328, allocations: 1.094 kB / 405.8 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.643e-05/0.2328, allocations: 5.844 kB / 405.8 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2328, allocations: 2.25 kB / 405.8 MB, free: 7.277 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.22e-05/0.2329, allocations: 154.5 kB / 405.9 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.2329, allocations: 8.625 kB / 405.9 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.572e-05/0.233, allocations: 8.766 kB / 405.9 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.233, allocations: 2 kB / 405.9 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.233, allocations: 0.8438 kB / 405.9 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.233, allocations: 0.8125 kB / 405.9 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.376e-05/0.233, allocations: 160.6 kB / 406.1 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2331, allocations: 0.6094 kB / 406.1 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.468e-05/0.2331, allocations: 7.609 kB / 406.1 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2331, allocations: 5.984 kB / 406.1 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2331, allocations: 3.141 kB / 406.1 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2331, allocations: 0 / 406.1 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2331, allocations: 5.5 kB / 406.1 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.2333, allocations: 154.2 kB / 406.3 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.2333, allocations: 81.3 kB / 406.3 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.2334, allocations: 6.656 kB / 406.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.219e-05/0.2334, allocations: 5.453 kB / 406.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.415e-05/0.2334, allocations: 2.469 kB / 406.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.2335, allocations: 3.125 kB / 406.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.668e-05/0.2335, allocations: 96.14 kB / 406.5 MB, free: 6.598 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2335, allocations: 0 / 406.5 MB, free: 6.598 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.2337, allocations: 26.22 kB / 406.5 MB, free: 6.59 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.0003219/0.234, allocations: 199.9 kB / 406.7 MB, free: 6.473 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001654/0.2342, allocations: 103.2 kB / 406.8 MB, free: 6.395 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2342, allocations: 0 / 406.8 MB, free: 6.395 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.802e-05/0.2343, allocations: 96.42 kB / 406.9 MB, free: 6.312 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.2345, allocations: 7.734 kB / 406.9 MB, free: 6.312 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002437/0.2347, allocations: 134.6 kB / 407 MB, free: 6.184 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.789e-05/0.2348, allocations: 0.6797 MB / 407.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.606e-05/0.2348, allocations: 1.469 kB / 407.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.418e-05/0.2348, allocations: 10.52 kB / 407.7 MB, free: 5.48 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2348, allocations: 4 kB / 407.7 MB, free: 5.477 MB / 286.1 MB Notification: Performance of Templates: time 0.002772/0.2376, allocations: 0.8566 MB / 408.6 MB, free: 5.359 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)