Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.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/ObjectStab 2.0.0-master/package.mo", uses=false) Using package ObjectStab with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/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(ObjectStab.Examples.KundurHJW.SystemPV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV") translateModel(ObjectStab.Examples.KundurHJW.SystemPV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, 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.002419/0.00242, allocations: 198.6 kB / 16.14 MB, free: 6.66 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.462/1.462, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo): time 0.1561/0.1561, allocations: 6.934 MB / 296.9 MB, free: 2.398 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 55.91 kB / 358.7 MB, free: 108 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1173, allocations: 51.08 MB / 409.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ObjectStab.Examples.KundurHJW.SystemPV): time 0.007925/0.1253, allocations: 6.133 MB / 415.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.1285, allocations: 1.227 MB / 417.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.1298, allocations: 16 kB / 417.2 MB, free: 5.562 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/Base/wRefContainer.mo:4:3-4:80:writable] Warning: Connector wr is not balanced: The number of potential variables (0) is not equal to the number of flow variables (2). Notification: Performance of NFTyping.typeComponents: time 0.0008697/0.1307, allocations: 123 kB / 417.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00197/0.1327, allocations: 393.5 kB / 417.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.1342, allocations: 0.8894 MB / 418.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00291/0.1372, allocations: 1.959 MB / 420.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.1382, allocations: 0.6609 MB / 421.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001523/0.1398, allocations: 0.9035 MB / 422.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2484/0.3882, allocations: 1.337 MB / 423.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008001/0.389, allocations: 161.7 kB / 423.6 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005587/0.3896, allocations: 162.3 kB / 423.8 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004467/0.3901, allocations: 435.8 kB / 424.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000875/0.3909, allocations: 0.7638 MB / 424.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.3924, allocations: 1.822 MB / 426.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3924, allocations: 0 / 426.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3924, allocations: 0.5625 kB / 426.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.3924, allocations: 0.8125 kB / 426.8 MB, free: 36.46 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 340 * Number of variables: 340 Notification: Performance of Generate backend data structure: time 0.005677/0.3981, allocations: 1.91 MB / 428.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.3982, allocations: 10.16 kB / 428.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002835/0.3985, allocations: 142.1 kB / 428.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008519/0.3993, allocations: 0.6027 MB / 429.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001568/0.3995, allocations: 220 kB / 429.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.3997, allocations: 128.4 kB / 429.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.402, allocations: 1.395 MB / 431.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.402, allocations: 0.9375 kB / 431.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.4022, allocations: 55.16 kB / 431.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.4022, allocations: 40.62 kB / 431.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002624/0.4049, allocations: 1.54 MB / 432.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009605/0.4145, allocations: 5.451 MB / 438.3 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/0.4179, allocations: 2.445 MB / 440.7 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.4192, allocations: 0.876 MB / 441.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001942/0.4194, allocations: 27.59 kB / 441.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001502/0.4209, allocations: 0.862 MB / 442.5 MB, free: 29.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=159): time 5.219e-06/0.4209, allocations: 0 / 442.5 MB, free: 29.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=159): time 0.07157/0.4925, allocations: 13.6 MB / 456.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.4927, allocations: 72.44 kB / 456.1 MB, free: 27.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000715/0.4934, allocations: 434.5 kB / 456.6 MB, free: 27.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004785/0.4939, allocations: 52.02 kB / 456.6 MB, free: 27.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.4942, allocations: 444.9 kB / 457 MB, free: 26.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005673/0.4948, allocations: 0.5162 MB / 457.6 MB, free: 26.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004722/0.4953, allocations: 221.1 kB / 457.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4954, allocations: 341.4 kB / 458.1 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.4965, allocations: 0.5933 MB / 458.7 MB, free: 25.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.4978, allocations: 0.8214 MB / 459.5 MB, free: 25.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/0.5003, allocations: 1.509 MB / 461 MB, free: 24.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.948e-06/0.5003, allocations: 4.188 kB / 461 MB, free: 24.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.01828/0.5186, allocations: 4.153 MB / 465.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.717e-05/0.5187, allocations: 7.125 kB / 465.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.5187, allocations: 5.844 kB / 465.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0199/0.5387, allocations: 3.476 MB / 468.7 MB, free: 21.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008457/0.5396, allocations: 150.7 kB / 468.8 MB, free: 21.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03147/0.5711, allocations: 11.81 MB / 480.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.5727, allocations: 133.7 kB / 480.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003502/0.5731, allocations: 49.62 kB / 480.8 MB, free: 13.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 5 (PV_4.online,PV_3.online,PV_2.online,PV_1.online,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,76)} Notification: Performance of prepare postOptimizeDAE: time 0.0009644/0.5741, allocations: 268.6 kB / 481.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.5744, allocations: 86.31 kB / 481.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01661/0.591, allocations: 4.221 MB / 485.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.211e-05/0.5911, allocations: 15.25 kB / 485.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.922e-06/0.5911, allocations: 0 / 485.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.383e-05/0.5912, allocations: 7.969 kB / 485.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01998/0.6112, allocations: 5.766 MB / 491.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/0.6113, allocations: 0 / 491.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006036/0.6119, allocations: 110.6 kB / 491.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01724/0.6291, allocations: 3.379 MB / 494.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005487/0.6297, allocations: 24 kB / 494.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02738/0.6571, allocations: 10.99 MB / 0.4938 GB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.6572, allocations: 3.984 kB / 0.4938 GB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01786/0.6751, allocations: 4.056 MB / 0.4978 GB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.6756, allocations: 175.8 kB / 0.4979 GB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006494/0.6763, allocations: 24 kB / 0.498 GB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.6778, allocations: 51.89 kB / 0.498 GB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/0.6789, allocations: 130.1 kB / 0.4981 GB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002754/0.6791, allocations: 47.2 kB / 0.4982 GB, free: 2.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004506/0.6796, allocations: 290.9 kB / 0.4985 GB, free: 2.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6796, allocations: 0 / 0.4985 GB, free: 2.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003004/0.6826, allocations: 0.6006 MB / 0.4991 GB, free: 1.727 MB / 366.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: 5 ($whenCondition1,PV_1.online,PV_2.online,PV_3.online,PV_4.online) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,74)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00041/0.683, allocations: 138 kB / 0.4992 GB, free: 1.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006827/0.6899, allocations: 2.427 MB / 0.5016 GB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.6899, allocations: 0 / 0.5016 GB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004821/0.6948, allocations: 1.701 MB / 0.5032 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.6963, allocations: 173.8 kB / 0.5034 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005605/0.7019, allocations: 2.643 MB / 0.506 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.703, allocations: 1.111 MB / 0.507 GB, free: 9.508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005533/0.7035, allocations: 79.44 kB / 0.5071 GB, free: 9.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.7037, allocations: 51.36 kB / 0.5072 GB, free: 9.375 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.7037, allocations: 4 kB / 0.5072 GB, free: 9.371 MB / 382.1 MB Notification: Performance of Templates: time 0.06583/0.7696, allocations: 39.45 MB / 0.5457 GB, free: 2.074 MB / 414.1 MB make -j1 -f ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.makefile (rm -f ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.pipe ; mkfifo ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.pipe ; head -c 1048576 < ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.pipe >> ../files/ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.sim & ./ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV -abortSlowSimulation -alarm=480 -lv LOG_STATS > ObjectStab_ObjectStab.Examples.KundurHJW.SystemPV.pipe 2>&1)