Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001065/0.001066, allocations: 197.8 kB / 16.25 MB, free: 6.621 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.235/1.235, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005323/0.005323, allocations: 1.002 MB / 291.1 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 63.91 kB / 351.6 MB, free: 2.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08315, allocations: 49.64 MB / 401.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.1448/0.228, allocations: 1.427 MB / 402.6 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008964/0.2289, allocations: 0.7727 MB / 403.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.095e-05/0.2289, allocations: 1.25 kB / 403.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.999e-05/0.2291, allocations: 0 / 403.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.2292, allocations: 7.812 kB / 403.4 MB, free: 9.465 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function ‘KeyWordIO.writeRealVariable‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.2294, allocations: 41.78 kB / 403.4 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.223e-05/0.2295, allocations: 18.3 kB / 403.5 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.2295, allocations: 10.02 kB / 403.5 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.688e-05/0.2295, allocations: 8.5 kB / 403.5 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.76e-05/0.2296, allocations: 16.39 kB / 403.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.208e-06/0.2297, allocations: 1.156 kB / 403.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.2297, allocations: 38.55 kB / 403.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.009e-05/0.2298, allocations: 5.969 kB / 403.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.206e-05/0.2298, allocations: 10.58 kB / 403.6 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.2299, allocations: 54.67 kB / 403.6 MB, free: 9.375 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2299, allocations: 7.031 kB / 403.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2299, allocations: 0 / 403.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2299, allocations: 1.469 kB / 403.6 MB, free: 9.371 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002758/0.2302, allocations: 362.6 kB / 404 MB, free: 8.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2302, allocations: 10.44 kB / 404 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.2303, allocations: 2.469 kB / 404 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.125e-05/0.2304, allocations: 180.6 kB / 404.2 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.2304, allocations: 0.9375 kB / 404.2 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.2304, allocations: 1.156 kB / 404.2 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.332e-05/0.2305, allocations: 34.97 kB / 404.2 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.2305, allocations: 0.8125 kB / 404.2 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.2305, allocations: 5.188 kB / 404.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2305, allocations: 0.8438 kB / 404.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.3e-05/0.2306, allocations: 13.89 kB / 404.2 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.651e-05/0.2307, allocations: 159.9 kB / 404.4 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.988e-05/0.2307, allocations: 26.08 kB / 404.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.317e-05/0.2308, allocations: 10.59 kB / 404.4 MB, free: 8.504 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.2308, allocations: 5.125 kB / 404.4 MB, free: 8.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001185/0.2309, allocations: 105.9 kB / 404.5 MB, free: 8.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.2309, allocations: 0 / 404.5 MB, free: 8.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001945/0.2311, allocations: 93.22 kB / 404.6 MB, free: 8.309 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.353e-05/0.2312, allocations: 79.3 kB / 404.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.108e-05/0.2312, allocations: 106.5 kB / 404.8 MB, free: 8.113 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.2312, allocations: 27.88 kB / 404.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.73e-05/0.2313, allocations: 86.64 kB / 404.9 MB, free: 7.996 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.2313, allocations: 3.906 kB / 404.9 MB, free: 7.992 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-05/0.2313, allocations: 13.28 kB / 404.9 MB, free: 7.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.02e-05/0.2314, allocations: 313.1 kB / 405.2 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.558e-05/0.2314, allocations: 14.12 kB / 405.2 MB, free: 7.656 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.602e-05/0.2314, allocations: 18 kB / 405.3 MB, free: 7.641 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.966e-05/0.2315, allocations: 83.86 kB / 405.3 MB, free: 7.555 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2315, allocations: 1.156 kB / 405.3 MB, free: 7.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001021/0.2316, allocations: 85 kB / 405.4 MB, free: 7.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.2317, allocations: 36.2 kB / 405.5 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2317, allocations: 5 kB / 405.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2317, allocations: 1.125 kB / 405.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.644e-05/0.2317, allocations: 6.266 kB / 405.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.2317, allocations: 1.344 kB / 405.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.939e-05/0.2318, allocations: 4.047 kB / 405.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.2318, allocations: 1.375 kB / 405.5 MB, free: 7.441 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 4.446e-05/0.2318, allocations: 140 kB / 405.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.2318, allocations: 11 kB / 405.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.565e-05/0.2319, allocations: 9.438 kB / 405.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.2319, allocations: 0 / 405.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2319, allocations: 0 / 405.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.2319, allocations: 1.938 kB / 405.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.471e-05/0.2319, allocations: 159.6 kB / 405.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.232, allocations: 1.469 kB / 405.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.389e-05/0.232, allocations: 3.609 kB / 405.8 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.232, allocations: 4.656 kB / 405.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.232, allocations: 2.062 kB / 405.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.232, allocations: 4 kB / 405.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.232, allocations: 0 / 405.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.2321, allocations: 108.3 kB / 405.9 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.412e-05/0.2322, allocations: 79.27 kB / 406 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.2322, allocations: 5.188 kB / 406 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.931e-05/0.2322, allocations: 9.094 kB / 406 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.2322, allocations: 5.656 kB / 406 MB, free: 6.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.2323, allocations: 1.812 kB / 406 MB, free: 6.867 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.584e-05/0.2323, allocations: 87.52 kB / 406.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2323, allocations: 1.406 kB / 406.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000198/0.2325, allocations: 15.27 kB / 406.1 MB, free: 6.785 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0003/0.2328, allocations: 200.6 kB / 406.3 MB, free: 6.668 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001316/0.2329, allocations: 85.97 kB / 406.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2329, allocations: 0 / 406.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.7e-05/0.233, allocations: 61.23 kB / 406.5 MB, free: 6.527 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.2331, allocations: 4.188 kB / 406.5 MB, free: 6.527 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001909/0.2333, allocations: 114.8 kB / 406.6 MB, free: 6.406 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.79e-05/0.2334, allocations: 0.6769 MB / 407.2 MB, free: 5.711 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.591e-05/0.2334, allocations: 5.469 kB / 407.2 MB, free: 5.707 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.2335, allocations: 9.141 kB / 407.3 MB, free: 5.699 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2335, allocations: 1.094 kB / 407.3 MB, free: 5.699 MB / 286.1 MB Notification: Performance of Templates: time 0.002775/0.2362, allocations: 0.7011 MB / 408 MB, free: 5.602 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)