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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007036/0.0007036, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009276/0.001631, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000706/0.000706, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009568/0.001663, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9216/0.9216, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08523/1.007, allocations: 53.64 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo): time 0.003783/0.003783, allocations: 0.7941 MB / 244.8 MB, free: 14.07 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/readLineWithoutCache.mo:2:1-87:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.001375/0.005158, allocations: 0.6275 MB / 245.4 MB, free: 13.44 MB / 250.7 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 246.7 MB, free: 12.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.499e-05/1.617e-05, allocations: 2.312 kB / 246.7 MB, free: 12.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001631/0.001647, allocations: 1.463 MB / 248.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.002758, allocations: 0.9672 MB / 249.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.718e-05/0.002785, allocations: 0 / 249.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.002802, allocations: 0 / 249.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.675e-05/0.002879, allocations: 15.86 kB / 249.1 MB, free: 9.715 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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.0001779/0.003057, allocations: 39.83 kB / 249.2 MB, free: 9.676 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.869e-05/0.003135, allocations: 31.92 kB / 249.2 MB, free: 9.645 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.076e-05/0.003166, allocations: 3.984 kB / 249.2 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.106e-05/0.003227, allocations: 23.92 kB / 249.2 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.201e-05/0.003279, allocations: 4 kB / 249.2 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.003289, allocations: 0 / 249.2 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.003392, allocations: 51.83 kB / 249.3 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.168e-05/0.003404, allocations: 7.938 kB / 249.3 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.194e-05/0.003426, allocations: 7.984 kB / 249.3 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.003547, allocations: 55.83 kB / 249.3 MB, free: 9.492 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.555e-05/0.003563, allocations: 4 kB / 249.4 MB, free: 9.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.003563, allocations: 4 kB / 249.4 MB, free: 9.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.003579, allocations: 0 / 249.4 MB, free: 9.484 MB / 250.7 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.0003445/0.003923, allocations: 286.1 kB / 249.6 MB, free: 9.172 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.003951, allocations: 8.031 kB / 249.6 MB, free: 9.164 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.792e-05/0.003979, allocations: 4.938 kB / 249.6 MB, free: 9.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.817e-05/0.004057, allocations: 113.7 kB / 249.8 MB, free: 9.023 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.004069, allocations: 4.312 kB / 249.8 MB, free: 9.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-06/0.004076, allocations: 4.375 kB / 249.8 MB, free: 9.016 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.592e-05/0.004172, allocations: 76.66 kB / 249.8 MB, free: 8.926 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.004179, allocations: 192 / 249.8 MB, free: 8.926 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.191e-06/0.004185, allocations: 4.375 kB / 249.8 MB, free: 8.922 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.00419, allocations: 384 / 249.8 MB, free: 8.922 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.48e-05/0.004215, allocations: 41.62 kB / 249.9 MB, free: 8.875 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.807e-05/0.004283, allocations: 61.05 kB / 249.9 MB, free: 8.801 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.113e-05/0.004324, allocations: 56.16 kB / 250 MB, free: 8.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.169e-05/0.004345, allocations: 38.67 kB / 250 MB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-06/0.00435, allocations: 0 / 250 MB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000114/0.004464, allocations: 170.2 kB / 250.2 MB, free: 8.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 6.12e-07/0.004465, allocations: 0 / 250.2 MB, free: 8.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001419/0.004607, allocations: 150.8 kB / 250.4 MB, free: 8.309 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.004659, allocations: 140.5 kB / 250.5 MB, free: 8.141 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.66e-05/0.004715, allocations: 110.7 kB / 250.6 MB, free: 8.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.247e-06/0.004725, allocations: 29.7 kB / 250.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.932e-05/0.004744, allocations: 88.14 kB / 250.7 MB, free: 7.895 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.004768, allocations: 15.88 kB / 250.7 MB, free: 7.879 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.72e-05/0.004795, allocations: 17.72 kB / 250.7 MB, free: 7.855 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/0.004861, allocations: 318.8 kB / 251.1 MB, free: 7.535 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.954e-05/0.00488, allocations: 33.69 kB / 251.1 MB, free: 7.496 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.089e-05/0.004901, allocations: 43.42 kB / 251.1 MB, free: 7.441 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.969e-05/0.004961, allocations: 97.03 kB / 251.2 MB, free: 7.328 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.004963, allocations: 4 kB / 251.2 MB, free: 7.324 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.608e-05/0.005029, allocations: 105.1 kB / 251.3 MB, free: 7.203 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.005059, allocations: 37.69 kB / 251.4 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.005063, allocations: 0 / 251.4 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.895e-06/0.005071, allocations: 0 / 251.4 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.364e-05/0.005125, allocations: 11.94 kB / 251.4 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-06/0.005127, allocations: 0 / 251.4 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.318e-05/0.00515, allocations: 4 kB / 251.4 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.005158, allocations: 7.938 kB / 251.4 MB, free: 7.137 MB / 250.7 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.0001005/0.005258, allocations: 155.5 kB / 251.5 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.005269, allocations: 11.98 kB / 251.6 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.555e-05/0.005285, allocations: 4.125 kB / 251.6 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.005287, allocations: 0 / 251.6 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.005288, allocations: 0 / 251.6 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.005291, allocations: 0 / 251.6 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.451e-05/0.005345, allocations: 73.84 kB / 251.6 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.005346, allocations: 0 / 251.6 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.299e-05/0.005359, allocations: 7.984 kB / 251.6 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-06/0.005367, allocations: 3.953 kB / 251.6 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.005368, allocations: 4 kB / 251.7 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.005374, allocations: 7.938 kB / 251.7 MB, free: 6.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.005375, allocations: 0 / 251.7 MB, free: 6.84 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.005376, allocations: 0 / 251.7 MB, free: 6.84 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.48e-05/0.00547, allocations: 160.6 kB / 251.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.005487, allocations: 0 / 251.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.896e-05/0.005506, allocations: 4 kB / 251.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.532e-05/0.005531, allocations: 7.984 kB / 251.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.005541, allocations: 4 kB / 251.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.198e-05/0.005553, allocations: 12.84 kB / 251.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005553, allocations: 4.031 kB / 251.8 MB, free: 6.617 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001293/0.005682, allocations: 24 kB / 251.9 MB, free: 6.594 MB / 250.7 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.0003577/0.00604, allocations: 217.3 kB / 252.1 MB, free: 6.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.006155, allocations: 147.6 kB / 252.2 MB, free: 6.258 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.006161, allocations: 7.984 kB / 252.2 MB, free: 6.25 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.619e-05/0.006207, allocations: 102 kB / 252.3 MB, free: 6.129 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.49e-05/0.006272, allocations: 11.94 kB / 252.3 MB, free: 6.117 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003425/0.006615, allocations: 170.2 kB / 252.5 MB, free: 5.918 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.667e-05/0.006641, allocations: 55.36 kB / 252.6 MB, free: 5.844 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.203e-05/0.006653, allocations: 4.188 kB / 252.6 MB, free: 5.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.006717, allocations: 67.36 kB / 252.6 MB, free: 5.773 MB / 250.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006717, allocations: 0 / 252.6 MB, free: 5.773 MB / 250.7 MB Notification: Performance of Templates: time 0.002439/0.009156, allocations: 1.013 MB / 253.6 MB, free: 4.77 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile [Timeout 660] (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=240 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.4732708232477307]