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.0008892/0.0008892, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.0008554/0.0008554, allocations: 192.3 kB / 16.25 MB, free: 6.156 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.116/1.116, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObjectStab 2.0.0-master/package.mo): time 0.1116/0.1116, allocations: 6.944 MB / 297 MB, free: 2.355 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 63.95 kB / 358.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07165/0.07269, allocations: 51.07 MB / 410 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ObjectStab.Examples.KundurHJW.SystemPV): time 0.005283/0.07799, allocations: 6.126 MB / 416.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.07933, allocations: 1.235 MB / 417.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.07956, allocations: 16 kB / 417.4 MB, free: 5.402 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.000244/0.07981, allocations: 125.5 kB / 417.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006679/0.08049, allocations: 393.5 kB / 417.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007739/0.08127, allocations: 0.8855 MB / 418.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.08262, allocations: 2.033 MB / 420.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009086/0.08354, allocations: 0.7947 MB / 421.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001641/0.08519, allocations: 1.001 MB / 422.6 MB, free: 136 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1351/0.2203, allocations: 1.428 MB / 424 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003766/0.2207, allocations: 236.8 kB / 424.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002694/0.221, allocations: 237.9 kB / 424.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.2213, allocations: 0.5018 MB / 425 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000475/0.2217, allocations: 0.833 MB / 425.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.2227, allocations: 1.878 MB / 427.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2228, allocations: 0 / 427.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.2228, allocations: 0 / 427.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.2228, allocations: 0 / 427.7 MB, free: 37.21 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.004325/0.2271, allocations: 1.911 MB / 429.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.2271, allocations: 9.781 kB / 429.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.2274, allocations: 147 kB / 429.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.2279, allocations: 0.6019 MB / 430.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.932e-05/0.228, allocations: 218.9 kB / 430.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/0.2281, allocations: 129.8 kB / 430.7 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.23, allocations: 1.399 MB / 432.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.23, allocations: 0.6875 kB / 432.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.2301, allocations: 54 kB / 432.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.2301, allocations: 33.09 kB / 432.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.2321, allocations: 1.535 MB / 433.7 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006947/0.239, allocations: 5.458 MB / 439.2 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.2415, allocations: 2.437 MB / 441.6 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008948/0.2424, allocations: 0.8826 MB / 442.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.2426, allocations: 26.28 kB / 442.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/0.2436, allocations: 0.8645 MB / 443.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=159): time 3.146e-06/0.2436, allocations: 0 / 443.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=159): time 0.06426/0.3079, allocations: 13.6 MB / 457 MB, free: 27.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.308, allocations: 72.03 kB / 457.1 MB, free: 27.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.3083, allocations: 437.5 kB / 457.5 MB, free: 27.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.602e-05/0.3084, allocations: 51.67 kB / 457.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.3086, allocations: 439.8 kB / 458 MB, free: 27.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002865/0.3089, allocations: 0.5161 MB / 458.5 MB, free: 26.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003771/0.3093, allocations: 229.3 kB / 458.7 MB, free: 26.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.3093, allocations: 335.3 kB / 459 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008498/0.3102, allocations: 0.599 MB / 459.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009453/0.3111, allocations: 0.8179 MB / 460.4 MB, free: 25.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/0.3129, allocations: 1.508 MB / 462 MB, free: 24.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.313, allocations: 6.062 kB / 462 MB, free: 24.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.0156/0.3286, allocations: 4.149 MB / 466.1 MB, free: 23.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3286, allocations: 6.5 kB / 466.1 MB, free: 23.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3286, allocations: 6.094 kB / 466.1 MB, free: 23.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0163/0.3449, allocations: 3.492 MB / 469.6 MB, free: 21.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004956/0.3454, allocations: 150.1 kB / 469.8 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02143/0.3668, allocations: 12.89 MB / 482.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009195/0.3678, allocations: 130.6 kB / 482.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.572e-05/0.3679, allocations: 47.19 kB / 482.8 MB, free: 13.23 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.0003623/0.3683, allocations: 275.3 kB / 483.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3684, allocations: 87.56 kB / 483.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/0.3834, allocations: 4.207 MB / 487.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3834, allocations: 16 kB / 487.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3834, allocations: 2.625 kB / 487.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3835, allocations: 7.969 kB / 487.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01617/0.3996, allocations: 5.775 MB / 493.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.3997, allocations: 3.938 kB / 493.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.4001, allocations: 98.52 kB / 493.3 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0156/0.4157, allocations: 3.398 MB / 496.7 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.489e-05/0.4158, allocations: 31.94 kB / 496.7 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/0.4373, allocations: 11.98 MB / 0.4968 GB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4373, allocations: 0 / 0.4968 GB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01549/0.4528, allocations: 4.067 MB / 0.5007 GB, free: 168 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.453, allocations: 175.7 kB / 0.5009 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4531, allocations: 33 kB / 0.5009 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008102/0.4539, allocations: 39.98 kB / 0.501 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/0.4543, allocations: 134.1 kB / 0.5011 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.401e-05/0.4544, allocations: 39.98 kB / 0.5011 GB, free: 15.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.4546, allocations: 298.9 kB / 0.5014 GB, free: 15.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4546, allocations: 0 / 0.5014 GB, free: 15.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001174/0.4558, allocations: 0.5967 MB / 0.502 GB, free: 14.85 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.0001691/0.456, allocations: 129.6 kB / 0.5021 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005099/0.4611, allocations: 2.522 MB / 0.5046 GB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4611, allocations: 0 / 0.5046 GB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00348/0.4646, allocations: 1.714 MB / 0.5063 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00083/0.4654, allocations: 190.3 kB / 0.5065 GB, free: 10.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.4683, allocations: 2.654 MB / 0.509 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.4688, allocations: 1.107 MB / 0.5101 GB, free: 6.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003393/0.4692, allocations: 87.42 kB / 0.5102 GB, free: 6.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.4693, allocations: 47.44 kB / 0.5103 GB, free: 6.379 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4693, allocations: 0 / 0.5103 GB, free: 6.379 MB / 382.1 MB Notification: Performance of Templates: time 0.04315/0.5124, allocations: 41.57 MB / 0.5509 GB, free: 12.97 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)