Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001309/0.001309, allocations: 193.4 kB / 18 MB, free: 5.074 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1885/0.1885, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 63.89 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3312, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.005274/0.3365, allocations: 4.431 MB / 0.5079 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.3386, allocations: 1.411 MB / 0.5093 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.3389, allocations: 18.44 kB / 0.5093 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.3399, allocations: 383.4 kB / 0.5097 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005703/0.3405, allocations: 251.5 kB / 0.5099 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007342/0.3412, allocations: 235.6 kB / 0.5101 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008119/0.342, allocations: 0.5599 MB / 0.5107 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004717/0.3425, allocations: 285.8 kB / 0.511 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003825/0.3429, allocations: 252.4 kB / 0.5112 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005871/0.3435, allocations: 358.2 kB / 0.5115 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.218e-05/0.3436, allocations: 39.56 kB / 0.5116 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005298/0.3442, allocations: 225.2 kB / 0.5118 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002801/0.3444, allocations: 242.9 kB / 0.512 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002766/0.3447, allocations: 258.8 kB / 0.5123 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009434/0.3457, allocations: 0.6738 MB / 0.5129 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3457, allocations: 0 / 0.5129 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3457, allocations: 1.344 kB / 0.5129 GB, free: 1.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.3457, allocations: 0 / 0.5129 GB, free: 1.805 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001398/0.3471, allocations: 0.788 MB / 0.5137 GB, free: 1.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3472, allocations: 12.45 kB / 0.5137 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.006e-05/0.3473, allocations: 88.36 kB / 0.5138 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005536/0.3478, allocations: 91.66 kB / 0.5139 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005852/0.3484, allocations: 425.9 kB / 0.5143 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.3485, allocations: 29.17 kB / 0.5143 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3486, allocations: 49.83 kB / 0.5144 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.3496, allocations: 0.6782 MB / 0.515 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.3497, allocations: 5.344 kB / 0.515 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-05/0.3497, allocations: 13.98 kB / 0.5151 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/0.3499, allocations: 51.38 kB / 0.5151 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.351, allocations: 0.6714 MB / 0.5158 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003849/0.3549, allocations: 2.518 MB / 0.5182 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.3555, allocations: 338.5 kB / 0.5185 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004526/0.356, allocations: 226.2 kB / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.356, allocations: 9.344 kB / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.3561, allocations: 40.3 kB / 0.5188 GB, free: 14.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.815e-06/0.3561, allocations: 1.094 kB / 0.5188 GB, free: 14.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002329/0.3584, allocations: 1.358 MB / 0.5201 GB, free: 13.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.3585, allocations: 84.94 kB / 0.5202 GB, free: 13.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.3588, allocations: 303.7 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.3589, allocations: 30.77 kB / 0.5205 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.3591, allocations: 270 kB / 0.5208 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.3592, allocations: 156.4 kB / 0.5209 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.3594, allocations: 96.41 kB / 0.521 GB, free: 12.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3596, allocations: 346.7 kB / 0.5214 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.3599, allocations: 197.3 kB / 0.5215 GB, free: 12.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.3603, allocations: 367.7 kB / 0.5219 GB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007825/0.3611, allocations: 0.6112 MB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3611, allocations: 1.375 kB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009949/0.3621, allocations: 0.6308 MB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3621, allocations: 11.59 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3622, allocations: 6.219 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.3622, allocations: 7.562 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/0.3626, allocations: 113.8 kB / 0.5232 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.3627, allocations: 9.344 kB / 0.5233 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.3629, allocations: 29.02 kB / 0.5233 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.363, allocations: 22.33 kB / 0.5233 GB, free: 11.54 MB / 398.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002699/0.3633, allocations: 214.7 kB / 0.5235 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/0.3634, allocations: 41.64 kB / 0.5235 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008439/0.3642, allocations: 500 kB / 0.524 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/0.3642, allocations: 23.62 kB / 0.524 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3643, allocations: 0.7969 kB / 0.524 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3643, allocations: 2.453 kB / 0.5241 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.3661, allocations: 1.097 MB / 0.5251 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.3661, allocations: 2.141 kB / 0.5251 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.3665, allocations: 77.47 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.3665, allocations: 2.156 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.3666, allocations: 9.438 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3666, allocations: 3.891 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3666, allocations: 0.9375 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.3678, allocations: 0.8388 MB / 0.526 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.3679, allocations: 108.9 kB / 0.5261 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/0.368, allocations: 9.344 kB / 0.5261 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.3682, allocations: 20.33 kB / 0.5262 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.47e-05/0.3683, allocations: 25.64 kB / 0.5262 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.3683, allocations: 9.188 kB / 0.5262 GB, free: 9.988 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002509/0.3686, allocations: 213.3 kB / 0.5264 GB, free: 9.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.074e-06/0.3686, allocations: 4 kB / 0.5264 GB, free: 9.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005714/0.3692, allocations: 115.5 kB / 0.5265 GB, free: 9.848 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001597/0.3708, allocations: 1.396 MB / 0.5279 GB, free: 8.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007958/0.3716, allocations: 495.6 kB / 0.5284 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3716, allocations: 2.125 kB / 0.5284 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003152/0.3719, allocations: 233.2 kB / 0.5286 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.3724, allocations: 74.41 kB / 0.5286 GB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005692/0.3782, allocations: 4.403 MB / 0.5329 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005599/0.3787, allocations: 0.8727 MB / 0.5338 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003456/0.3791, allocations: 129.4 kB / 0.5339 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002268/0.3793, allocations: 143.7 kB / 0.5341 GB, free: 5.086 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3793, allocations: 0 / 0.5341 GB, free: 5.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.4119, allocations: 7.927 MB / 0.5418 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.744/9.156, allocations: 0 / 0.5418 GB, free: 0.7422 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)