Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 111.2 kB / 17.68 MB, free: 5.332 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.001223/0.001223, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2195/0.2195, allocations: 37.98 MB / 309.8 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 59.91 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.313, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006339/0.3194, allocations: 4.939 MB / 437 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003294/0.3228, allocations: 2.521 MB / 439.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.3232, allocations: 15.94 kB / 439.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.3245, allocations: 434.1 kB / 439.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.3256, allocations: 0.5057 MB / 440.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.3263, allocations: 287.2 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006494/0.327, allocations: 0.7398 MB / 441.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004855/0.3275, allocations: 329.6 kB / 441.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.3279, allocations: 318.7 kB / 442.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003598/0.3282, allocations: 326.8 kB / 442.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.757e-05/0.3283, allocations: 36 kB / 442.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009414/0.3292, allocations: 0.6351 MB / 443.1 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.3294, allocations: 199.5 kB / 443.3 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.3297, allocations: 242.9 kB / 443.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008397/0.3305, allocations: 0.7633 MB / 444.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.3306, allocations: 0 / 444.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.3306, allocations: 0 / 444.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.3306, allocations: 0 / 444.3 MB, free: 7.207 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001134/0.3317, allocations: 0.7723 MB / 445 MB, free: 6.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3318, allocations: 15.88 kB / 445 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001623/0.3334, allocations: 204.1 kB / 445.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005711/0.334, allocations: 366.4 kB / 445.6 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.334, allocations: 29.38 kB / 445.6 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.306e-05/0.3341, allocations: 48.27 kB / 445.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008764/0.335, allocations: 0.6305 MB / 446.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.3351, allocations: 0 / 446.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.794e-05/0.3351, allocations: 16 kB / 446.3 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-05/0.3352, allocations: 40.97 kB / 446.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007948/0.336, allocations: 0.605 MB / 447 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.3387, allocations: 2.249 MB / 449.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.3393, allocations: 490.3 kB / 449.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.3396, allocations: 243.8 kB / 449.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.3396, allocations: 8 kB / 449.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.3397, allocations: 38.5 kB / 450 MB, free: 1.203 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.3397, allocations: 0 / 450 MB, free: 1.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.003173/0.3428, allocations: 1.716 MB / 451.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.3429, allocations: 81.11 kB / 451.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.3432, allocations: 278.9 kB / 452 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.3433, allocations: 37.69 kB / 452.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.3435, allocations: 232.1 kB / 452.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3436, allocations: 149.8 kB / 452.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.3438, allocations: 86.16 kB / 452.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000329/0.3441, allocations: 354.7 kB / 452.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.3445, allocations: 184.9 kB / 453.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.3449, allocations: 290.4 kB / 453.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006829/0.3456, allocations: 0.4927 MB / 453.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3456, allocations: 4 kB / 453.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001156/0.3468, allocations: 0.681 MB / 454.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3468, allocations: 4 kB / 454.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3468, allocations: 4 kB / 454.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006178/0.3474, allocations: 177 kB / 454.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/0.3478, allocations: 95.83 kB / 454.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/0.3516, allocations: 2.781 MB / 457.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000296/0.3519, allocations: 23.98 kB / 457.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/0.352, allocations: 23.98 kB / 457.6 MB, free: 9.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002878/0.3523, allocations: 201.5 kB / 457.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.07e-05/0.3523, allocations: 43.47 kB / 457.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.3535, allocations: 0.6295 MB / 458.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3535, allocations: 8 kB / 458.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.3535, allocations: 0 / 458.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.3535, allocations: 7.922 kB / 458.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.3557, allocations: 1.34 MB / 459.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.3557, allocations: 4 kB / 459.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.356, allocations: 75.89 kB / 459.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005024/0.3565, allocations: 152.8 kB / 460.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.3566, allocations: 11.94 kB / 460.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003137/0.3597, allocations: 2.568 MB / 462.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3597, allocations: 0 / 462.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3612, allocations: 0.9575 MB / 463.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.3613, allocations: 116.7 kB / 463.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.3613, allocations: 15.94 kB / 463.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.3615, allocations: 12 kB / 463.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.3616, allocations: 35.95 kB / 463.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/0.3617, allocations: 11.98 kB / 463.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.3619, allocations: 198 kB / 464 MB, free: 2.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3619, allocations: 0 / 464 MB, free: 2.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006032/0.3625, allocations: 140 kB / 464.1 MB, free: 2.379 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001476/0.3626, allocations: 111.1 kB / 464.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.3639, allocations: 0.6731 MB / 464.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3639, allocations: 0 / 464.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006566/0.3645, allocations: 427.1 kB / 465.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/0.365, allocations: 63.95 kB / 465.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.3668, allocations: 1.125 MB / 466.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.3673, allocations: 0.8746 MB / 467.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000177/0.3675, allocations: 67.23 kB / 467.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.385e-05/0.3676, allocations: 39.42 kB / 467.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3676, allocations: 3.938 kB / 467.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of Templates: time 0.01035/0.378, allocations: 5.711 MB / 473.2 MB, free: 9.219 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)