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.004651/0.004651, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001241/0.001241, allocations: 198.4 kB / 16.68 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.157/1.157, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo): time 0.02659/0.02659, allocations: 6.944 MB / 297.5 MB, free: 8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 64.12 kB / 412.9 MB, free: 22.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06958/0.07063, allocations: 51.09 MB / 464 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ObjectStab.Examples.KundurHJW.SystemPV): time 0.005507/0.07616, allocations: 6.067 MB / 470 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.07773, allocations: 1.216 MB / 471.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/0.07798, allocations: 16 kB / 471.3 MB, free: 12.31 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.0002938/0.07828, allocations: 179.5 kB / 471.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007372/0.07902, allocations: 464.6 kB / 471.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008757/0.07991, allocations: 0.9399 MB / 472.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.08137, allocations: 2.041 MB / 474.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007752/0.08215, allocations: 0.7869 MB / 475.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007742/0.08293, allocations: 1.009 MB / 476.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.08426, allocations: 1.426 MB / 478.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002419/0.08451, allocations: 236 kB / 478.3 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002439/0.08476, allocations: 236 kB / 478.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003726/0.08514, allocations: 0.5024 MB / 479.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005863/0.08574, allocations: 0.8324 MB / 479.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.087, allocations: 1.9 MB / 481.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.08701, allocations: 0 / 481.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.08702, allocations: 0 / 481.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.08703, allocations: 3.938 kB / 481.8 MB, free: 1.715 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.004585/0.09162, allocations: 1.908 MB / 483.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.09167, allocations: 8.031 kB / 483.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.09192, allocations: 139.2 kB / 483.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007266/0.09265, allocations: 0.6062 MB / 484.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.0928, allocations: 225.6 kB / 484.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.09298, allocations: 128 kB / 484.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/0.09514, allocations: 1.394 MB / 486.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.09518, allocations: 0 / 486.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.09531, allocations: 52 kB / 486.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.09534, allocations: 35.94 kB / 486.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002451/0.0978, allocations: 1.533 MB / 487.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008435/0.1062, allocations: 5.405 MB / 493.2 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003055/0.1093, allocations: 2.455 MB / 495.7 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.1104, allocations: 0.8788 MB / 496.6 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001466/0.1106, allocations: 21.3 kB / 496.6 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.1119, allocations: 0.8642 MB / 497.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of pre-optimization done (n=159): time 3.126e-06/0.1119, allocations: 0 / 497.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.06897/0.1809, allocations: 13.6 MB / 0.4991 GB, free: 3.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.1809, allocations: 72.72 kB / 0.4991 GB, free: 3.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.1813, allocations: 437.8 kB / 0.4995 GB, free: 3.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.086e-05/0.1814, allocations: 53.7 kB / 0.4996 GB, free: 3.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002385/0.1817, allocations: 444.3 kB / 0.5 GB, free: 2.836 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/0.1821, allocations: 0.5159 MB / 0.5005 GB, free: 2.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003899/0.1825, allocations: 223.5 kB / 0.5007 GB, free: 2.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1826, allocations: 341.9 kB / 0.5011 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009009/0.1835, allocations: 0.5936 MB / 0.5016 GB, free: 1.156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.1845, allocations: 0.8211 MB / 0.5024 GB, free: 268 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1627/0.3472, allocations: 1.504 MB / 0.5039 GB, free: 45.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.3472, allocations: 1.656 kB / 0.5039 GB, free: 45.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.01596/0.3632, allocations: 4.146 MB / 0.508 GB, free: 45.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3633, allocations: 7.688 kB / 0.508 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3633, allocations: 6.078 kB / 0.508 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01727/0.3805, allocations: 3.477 MB / 0.5114 GB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006478/0.3812, allocations: 143 kB / 0.5115 GB, free: 44.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02228/0.4035, allocations: 12.87 MB / 0.5241 GB, free: 38.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009743/0.4045, allocations: 133.6 kB / 0.5242 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.646e-05/0.4046, allocations: 54.19 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.0003626/0.405, allocations: 273.7 kB / 0.5245 GB, free: 37.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.4051, allocations: 84.53 kB / 0.5246 GB, free: 37.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/0.4195, allocations: 4.214 MB / 0.5287 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.4195, allocations: 20 kB / 0.5287 GB, free: 35.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.4195, allocations: 0 / 0.5287 GB, free: 35.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.4195, allocations: 8.516 kB / 0.5287 GB, free: 35.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/0.4349, allocations: 5.746 MB / 0.5344 GB, free: 29.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4349, allocations: 6.344 kB / 0.5344 GB, free: 29.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000399/0.4353, allocations: 103.9 kB / 0.5345 GB, free: 29.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01527/0.4506, allocations: 3.385 MB / 0.5378 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.4508, allocations: 28 kB / 0.5378 GB, free: 25.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01923/0.47, allocations: 11.97 MB / 0.5495 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.47, allocations: 2.312 kB / 0.5495 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/0.4842, allocations: 4.067 MB / 0.5535 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.4843, allocations: 175.7 kB / 0.5536 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.4845, allocations: 24 kB / 0.5536 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007803/0.4853, allocations: 47.92 kB / 0.5537 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/0.4856, allocations: 134.1 kB / 0.5538 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.547e-05/0.4857, allocations: 32 kB / 0.5539 GB, free: 9.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001959/0.4859, allocations: 298.9 kB / 0.5541 GB, free: 9.051 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4859, allocations: 0 / 0.5541 GB, free: 9.051 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001182/0.4871, allocations: 0.5928 MB / 0.5547 GB, free: 8.457 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.0001474/0.4872, allocations: 141.3 kB / 0.5549 GB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004182/0.4914, allocations: 2.474 MB / 0.5573 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4915, allocations: 0 / 0.5573 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003163/0.4946, allocations: 1.724 MB / 0.559 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000822/0.4955, allocations: 182.4 kB / 0.5591 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.4979, allocations: 2.109 MB / 0.5612 GB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.4982, allocations: 1.107 MB / 0.5623 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002593/0.4985, allocations: 87.33 kB / 0.5623 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.4986, allocations: 43.44 kB / 0.5624 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4986, allocations: 4 kB / 0.5624 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of Templates: time 0.04973/0.5483, allocations: 43.75 MB / 0.6051 GB, free: 4.906 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)