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.009029/0.009029, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001817/0.001818, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo): time 0.02962/0.02962, allocations: 6.948 MB / 297.5 MB, free: 8.004 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 65.28 kB / 412.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 51.08 MB / 464 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ObjectStab.Examples.KundurHJW.SystemPV): time 0.006438/0.1141, allocations: 6.077 MB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.1167, allocations: 1.22 MB / 471.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004386/0.1171, allocations: 12 kB / 471.3 MB, free: 12.41 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.0004147/0.1176, allocations: 178.2 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009966/0.1186, allocations: 460.5 kB / 471.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1197, allocations: 0.9399 MB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001905/0.1216, allocations: 2.041 MB / 474.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009255/0.1225, allocations: 0.7908 MB / 475.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/0.1238, allocations: 1.005 MB / 476.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001552/0.1254, allocations: 1.426 MB / 478.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002864/0.1257, allocations: 236 kB / 478.3 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002747/0.1259, allocations: 240 kB / 478.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004495/0.1264, allocations: 0.4986 MB / 479.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007376/0.1271, allocations: 0.8247 MB / 479.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001642/0.1288, allocations: 1.897 MB / 481.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1288, allocations: 0 / 481.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1288, allocations: 0 / 481.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.1288, allocations: 0 / 481.8 MB, free: 1.836 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.005394/0.1342, allocations: 1.92 MB / 483.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1343, allocations: 8.031 kB / 483.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/0.1346, allocations: 143.2 kB / 483.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.1354, allocations: 0.6063 MB / 484.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.1356, allocations: 217.6 kB / 484.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.1358, allocations: 132 kB / 484.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.1381, allocations: 1.394 MB / 486.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.1381, allocations: 0 / 486.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/0.1383, allocations: 56 kB / 486.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.548e-05/0.1383, allocations: 32 kB / 486.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002642/0.1409, allocations: 1.537 MB / 487.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009338/0.1503, allocations: 5.405 MB / 493.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003292/0.1536, allocations: 2.443 MB / 495.7 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.1549, allocations: 0.8788 MB / 496.5 MB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001343/0.1551, allocations: 33.23 kB / 496.6 MB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.1565, allocations: 0.8565 MB / 497.4 MB, free: 1.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=159): time 3.507e-06/0.1565, allocations: 3.938 kB / 497.4 MB, free: 1.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.07536/0.2318, allocations: 13.6 MB / 0.4991 GB, free: 3.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.232, allocations: 68.72 kB / 0.4991 GB, free: 3.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000596/0.2326, allocations: 437.9 kB / 0.4995 GB, free: 3.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002982/0.2329, allocations: 57.64 kB / 0.4996 GB, free: 3.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.2332, allocations: 444.4 kB / 0.5 GB, free: 2.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005199/0.2337, allocations: 0.5119 MB / 0.5005 GB, free: 2.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004187/0.2341, allocations: 223.5 kB / 0.5007 GB, free: 2.203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2343, allocations: 338 kB / 0.5011 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.2353, allocations: 0.5975 MB / 0.5016 GB, free: 1.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.2365, allocations: 0.821 MB / 0.5024 GB, free: 384 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2553/0.4918, allocations: 1.503 MB / 0.5039 GB, free: 45.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.4919, allocations: 1.719 kB / 0.5039 GB, free: 45.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.0187/0.5106, allocations: 4.151 MB / 0.508 GB, free: 45.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.5106, allocations: 8.906 kB / 0.508 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.5107, allocations: 4.125 kB / 0.508 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0204/0.5311, allocations: 3.477 MB / 0.5114 GB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008864/0.532, allocations: 143.2 kB / 0.5115 GB, free: 44.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/0.5592, allocations: 12.88 MB / 0.5241 GB, free: 38.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.5605, allocations: 131.6 kB / 0.5242 GB, free: 37.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.5606, allocations: 54.97 kB / 0.5243 GB, free: 37.93 MB / 382.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.0004931/0.5611, allocations: 272.2 kB / 0.5245 GB, free: 37.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5613, allocations: 85.34 kB / 0.5246 GB, free: 37.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0162/0.5775, allocations: 4.21 MB / 0.5287 GB, free: 35.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.5776, allocations: 16 kB / 0.5287 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5776, allocations: 4 kB / 0.5287 GB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.734e-05/0.5776, allocations: 7.969 kB / 0.5287 GB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.5954, allocations: 5.753 MB / 0.5344 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/0.5954, allocations: 4 kB / 0.5344 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.596, allocations: 107.4 kB / 0.5345 GB, free: 29.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01696/0.613, allocations: 3.379 MB / 0.5378 GB, free: 26.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003972/0.6134, allocations: 27.98 kB / 0.5378 GB, free: 26.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02261/0.636, allocations: 11.98 MB / 0.5495 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6361, allocations: 0 / 0.5495 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01562/0.6517, allocations: 4.066 MB / 0.5535 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002619/0.652, allocations: 175.7 kB / 0.5536 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004412/0.6525, allocations: 24 kB / 0.5536 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.6535, allocations: 51.91 kB / 0.5537 GB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007049/0.6542, allocations: 134.1 kB / 0.5538 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.399e-05/0.6543, allocations: 32 kB / 0.5539 GB, free: 9.441 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.6546, allocations: 294.9 kB / 0.5541 GB, free: 9.152 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6546, allocations: 0 / 0.5541 GB, free: 9.152 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001851/0.6565, allocations: 0.5928 MB / 0.5547 GB, free: 8.559 MB / 382.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.000208/0.6567, allocations: 143 kB / 0.5549 GB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005457/0.6622, allocations: 2.464 MB / 0.5573 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.6622, allocations: 4 kB / 0.5573 GB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004076/0.6663, allocations: 1.737 MB / 0.559 GB, free: 4.195 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.6675, allocations: 178.9 kB / 0.5591 GB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.6711, allocations: 2.107 MB / 0.5612 GB, free: 1.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.6716, allocations: 1.107 MB / 0.5623 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003626/0.6719, allocations: 83.2 kB / 0.5623 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.6721, allocations: 47.42 kB / 0.5624 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.6721, allocations: 0 / 0.5624 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of Templates: time 0.06412/0.7362, allocations: 42.11 MB / 0.6035 GB, free: 6.656 MB / 430.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)