Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001392/0.001392, allocations: 180.7 kB / 8.012 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 78.7 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2572/0.2572, allocations: 37.99 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.64e-05, allocations: 4 kB / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1264, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5337/0.6602, allocations: 121.6 MB / 0.574 GB, free: 6.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/0.6606, allocations: 98.17 kB / 0.5741 GB, free: 6.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.151/0.8116, allocations: 35.15 MB / 0.6085 GB, free: 9.086 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.8117, allocations: 3.938 kB / 0.6085 GB, free: 9.082 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000117/0.8118, allocations: 28 kB / 0.6085 GB, free: 9.055 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.004736/0.8166, allocations: 1.328 MB / 0.6098 GB, free: 7.754 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.8166, allocations: 12.03 kB / 0.6098 GB, free: 7.742 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/0.8178, allocations: 158.3 kB / 0.6099 GB, free: 7.586 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004907/0.8227, allocations: 1.221 MB / 0.6111 GB, free: 6.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.8229, allocations: 35.94 kB / 0.6112 GB, free: 6.555 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005547/0.8234, allocations: 87.14 kB / 0.6113 GB, free: 6.473 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002959/0.8264, allocations: 0.9214 MB / 0.6122 GB, free: 5.895 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003195/0.8296, allocations: 1.163 MB / 0.6133 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.614e-05/0.8298, allocations: 7.938 kB / 0.6133 GB, free: 4.969 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.8299, allocations: 0 / 0.6133 GB, free: 4.969 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001958/0.8301, allocations: 72.84 kB / 0.6134 GB, free: 4.902 MB / 410.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.8423, allocations: 4.866 MB / 0.6181 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.8441, allocations: 0.6862 MB / 0.6188 GB, free: 15.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000758/0.8449, allocations: 318.4 kB / 0.6191 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.163e-05/0.845, allocations: 4.562 kB / 0.6191 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.845, allocations: 43.12 kB / 0.6191 GB, free: 15.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=64): time 4.819e-06/0.845, allocations: 0 / 0.6191 GB, free: 15.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.006091/0.8511, allocations: 2.037 MB / 0.6211 GB, free: 13.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.041e-05/0.8513, allocations: 115.4 kB / 0.6212 GB, free: 13.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.8524, allocations: 0.5234 MB / 0.6217 GB, free: 12.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.8526, allocations: 25.7 kB / 0.6218 GB, free: 12.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005793/0.8532, allocations: 0.5868 MB / 0.6223 GB, free: 11.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.8536, allocations: 248.3 kB / 0.6226 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.471e-05/0.8537, allocations: 0 / 0.6226 GB, free: 11.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.8539, allocations: 350.8 kB / 0.6229 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000717/0.8546, allocations: 262.6 kB / 0.6232 GB, free: 11.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009415/0.8555, allocations: 0.495 MB / 0.6237 GB, free: 10.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009469/0.8565, allocations: 364.3 kB / 0.624 GB, free: 10.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.8565, allocations: 0 / 0.624 GB, free: 10.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004181/0.8607, allocations: 1.102 MB / 0.6251 GB, free: 9.043 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00168/0.8625, allocations: 3.226 MB / 0.6282 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/0.8625, allocations: 8 kB / 0.6282 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/0.8651, allocations: 392.5 kB / 0.6286 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.8665, allocations: 171.7 kB / 0.6288 GB, free: 5.004 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.8691, allocations: 1.166 MB / 0.6299 GB, free: 3.809 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.8702, allocations: 23.89 kB / 0.6299 GB, free: 3.785 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.8703, allocations: 39.98 kB / 0.63 GB, free: 3.746 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.8703, allocations: 11.94 kB / 0.63 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003841/0.8742, allocations: 1.022 MB / 0.631 GB, free: 2.707 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/0.8743, allocations: 11.95 kB / 0.631 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/0.8765, allocations: 385 kB / 0.6314 GB, free: 2.316 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.8779, allocations: 175.7 kB / 0.6315 GB, free: 2.145 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.8888, allocations: 4.395 MB / 0.6358 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007418/0.8896, allocations: 23.89 kB / 0.6358 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.028e-05/0.8897, allocations: 36 kB / 0.6359 GB, free: 13.57 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003649/0.8901, allocations: 150.2 kB / 0.636 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/0.8904, allocations: 86.97 kB / 0.6361 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.8925, allocations: 0.7731 MB / 0.6369 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.8925, allocations: 11.94 kB / 0.6369 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.8925, allocations: 4 kB / 0.6369 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.8926, allocations: 3.984 kB / 0.6369 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/0.8969, allocations: 1.615 MB / 0.6385 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/0.897, allocations: 4 kB / 0.6385 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.8987, allocations: 159.8 kB / 0.6386 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.406e-05/0.8987, allocations: 4 kB / 0.6386 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.062e-05/0.8988, allocations: 12.03 kB / 0.6386 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.8988, allocations: 0 / 0.6386 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.8988, allocations: 4 kB / 0.6386 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/0.9016, allocations: 1.197 MB / 0.6398 GB, free: 9.418 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005282/0.9021, allocations: 215.9 kB / 0.64 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.9023, allocations: 4 kB / 0.64 GB, free: 9.184 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007241/0.903, allocations: 15.89 kB / 0.64 GB, free: 9.168 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.9031, allocations: 48.66 kB / 0.6401 GB, free: 9.121 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.021e-05/0.9032, allocations: 16 kB / 0.6401 GB, free: 9.105 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008499/0.9041, allocations: 407.1 kB / 0.6405 GB, free: 8.711 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.9041, allocations: 4 kB / 0.6405 GB, free: 8.707 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002049/0.9062, allocations: 369.4 kB / 0.6408 GB, free: 8.348 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003836/0.9066, allocations: 180 kB / 0.641 GB, free: 8.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004954/0.9115, allocations: 1.488 MB / 0.6425 GB, free: 6.664 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.9116, allocations: 0 / 0.6425 GB, free: 6.664 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008401/0.9124, allocations: 324.4 kB / 0.6428 GB, free: 6.352 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.914, allocations: 167.3 kB / 0.6429 GB, free: 6.191 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005495/0.9195, allocations: 1.98 MB / 0.6449 GB, free: 4.168 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/0.9209, allocations: 1.206 MB / 0.646 GB, free: 2.934 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004507/0.9213, allocations: 71.36 kB / 0.6461 GB, free: 2.863 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/0.9214, allocations: 0 / 0.6461 GB, free: 2.863 MB / 442.7 MB Notification: Performance of Templates: time 0.0364/0.9578, allocations: 15.2 MB / 0.6609 GB, free: 3.676 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)