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.00532/0.00532, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001123/0.001123, allocations: 194.6 kB / 16.67 MB, free: 5.938 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.256/1.256, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005964/0.005964, allocations: 0.998 MB / 291.5 MB, free: 1.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 61.16 kB / 403 MB, free: 9.133 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0752/0.07643, allocations: 49.65 MB / 452.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.00231/0.07877, allocations: 1.374 MB / 454 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.0799, allocations: 0.8089 MB / 454.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.241e-05/0.07995, allocations: 4 kB / 454.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.167e-05/0.07998, allocations: 3.938 kB / 454.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.08015, allocations: 3.938 kB / 454.8 MB, free: 2.266 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.0002546/0.08042, allocations: 47.88 kB / 454.8 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.974e-05/0.08051, allocations: 27.91 kB / 454.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.083e-05/0.08055, allocations: 11.94 kB / 454.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.818e-05/0.08059, allocations: 11.92 kB / 454.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.449e-05/0.08069, allocations: 15.92 kB / 454.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.08071, allocations: 4 kB / 454.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.08082, allocations: 39.97 kB / 455 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.15e-05/0.08083, allocations: 3.984 kB / 455 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.213e-05/0.08087, allocations: 19.88 kB / 455 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.08101, allocations: 59.78 kB / 455 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.08102, allocations: 0 / 455 MB, free: 2.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.08103, allocations: 0 / 455 MB, free: 2.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.08104, allocations: 4 kB / 455 MB, free: 2.023 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.000365/0.08141, allocations: 377 kB / 455.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.781e-05/0.08145, allocations: 8.031 kB / 455.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/0.08148, allocations: 8.875 kB / 455.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.0816, allocations: 172.3 kB / 455.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.08162, allocations: 8.312 kB / 455.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.08163, allocations: 384 / 455.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.08175, allocations: 38.25 kB / 455.6 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.491e-06/0.08176, allocations: 8.188 kB / 455.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.08178, allocations: 3.938 kB / 455.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.08179, allocations: 0 / 455.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.553e-05/0.08187, allocations: 15.98 kB / 455.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.082, allocations: 165.7 kB / 455.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.9e-05/0.0821, allocations: 34.5 kB / 455.9 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.131e-05/0.08216, allocations: 16.89 kB / 455.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.08218, allocations: 4 kB / 455.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/0.08233, allocations: 148.5 kB / 456 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.08234, allocations: 0 / 456 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002859/0.08263, allocations: 127.2 kB / 456.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.08271, allocations: 132.5 kB / 456.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.241e-05/0.08279, allocations: 109.8 kB / 456.4 MB, free: 440 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.08281, allocations: 33.67 kB / 456.4 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.08285, allocations: 84.14 kB / 456.5 MB, free: 312 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.08288, allocations: 19.88 kB / 456.5 MB, free: 292 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.08291, allocations: 13.72 kB / 456.5 MB, free: 272 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.08303, allocations: 318.8 kB / 456.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.221e-05/0.08307, allocations: 7.984 kB / 456.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.644e-05/0.08313, allocations: 25.89 kB / 456.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.08328, allocations: 109.1 kB / 457 MB, free: 15.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.08329, allocations: 4 kB / 457 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001529/0.08345, allocations: 95.38 kB / 457.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.08349, allocations: 37.64 kB / 457.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.0835, allocations: 0 / 457.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.08352, allocations: 3.984 kB / 457.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.683e-05/0.08358, allocations: 12 kB / 457.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.0836, allocations: 4 kB / 457.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.669e-05/0.08364, allocations: 7.953 kB / 457.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.08365, allocations: 0 / 457.1 MB, free: 15.6 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.0001149/0.08377, allocations: 151.5 kB / 457.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.08379, allocations: 7.938 kB / 457.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.781e-05/0.08381, allocations: 8 kB / 457.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.08382, allocations: 4 kB / 457.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.08383, allocations: 0 / 457.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.08384, allocations: 0 / 457.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.08394, allocations: 165.7 kB / 457.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.08395, allocations: 3.984 kB / 457.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.566e-05/0.08398, allocations: 4 kB / 457.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.08399, allocations: 7.875 kB / 457.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.08401, allocations: 4 kB / 457.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.08401, allocations: 0 / 457.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08402, allocations: 0 / 457.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.08423, allocations: 154.7 kB / 457.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.08428, allocations: 81.11 kB / 457.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.0843, allocations: 3.938 kB / 457.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.183e-05/0.08434, allocations: 4 kB / 457.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.08438, allocations: 11.98 kB / 457.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.0844, allocations: 4 kB / 457.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.572e-05/0.08444, allocations: 87.22 kB / 457.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.08445, allocations: 4.031 kB / 457.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002131/0.08467, allocations: 23.98 kB / 457.9 MB, free: 14.77 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.0003324/0.08501, allocations: 198.2 kB / 458.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.08519, allocations: 103.3 kB / 458.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.08521, allocations: 0 / 458.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.469e-05/0.08531, allocations: 91.39 kB / 458.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.08545, allocations: 12.19 kB / 458.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002294/0.08568, allocations: 125.5 kB / 458.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.08594, allocations: 0.6844 MB / 459.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.803e-05/0.08597, allocations: 4 kB / 459.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.08599, allocations: 7.438 kB / 459.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.08599, allocations: 0 / 459.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Templates: time 0.00297/0.08897, allocations: 0.9062 MB / 460 MB, free: 12.61 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)