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.00164/0.00164, allocations: 106.9 kB / 17.06 MB, free: 5.82 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.001719/0.001719, allocations: 195.9 kB / 18 MB, free: 4.965 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1754/0.1754, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 67.89 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3236, 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.004864/0.3285, allocations: 4.428 MB / 0.5079 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.3305, allocations: 1.417 MB / 0.5093 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.3307, allocations: 13.38 kB / 0.5093 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009809/0.3317, allocations: 379.4 kB / 0.5097 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004975/0.3322, allocations: 256.9 kB / 0.5099 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006044/0.3328, allocations: 240.3 kB / 0.5102 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005821/0.3334, allocations: 0.5591 MB / 0.5107 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.3339, allocations: 281.5 kB / 0.511 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003832/0.3343, allocations: 257.2 kB / 0.5112 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.3348, allocations: 358.2 kB / 0.5116 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.822e-05/0.3349, allocations: 39.88 kB / 0.5116 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004903/0.3354, allocations: 216.9 kB / 0.5118 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002983/0.3357, allocations: 243.7 kB / 0.512 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002702/0.336, allocations: 262 kB / 0.5123 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009458/0.337, allocations: 0.6776 MB / 0.5129 GB, free: 1.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.337, allocations: 0.75 kB / 0.5129 GB, free: 1.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.337, allocations: 0 / 0.5129 GB, free: 1.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.337, allocations: 3.938 kB / 0.513 GB, free: 1.793 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.001458/0.3385, allocations: 0.7774 MB / 0.5137 GB, free: 1.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.3385, allocations: 13.19 kB / 0.5137 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.3386, allocations: 90.95 kB / 0.5138 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005835/0.3392, allocations: 87.39 kB / 0.5139 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006813/0.3399, allocations: 430.5 kB / 0.5143 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.34, allocations: 28.94 kB / 0.5143 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.3401, allocations: 45.44 kB / 0.5144 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.3412, allocations: 0.6788 MB / 0.515 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.3412, allocations: 5.75 kB / 0.515 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.736e-05/0.3413, allocations: 16.38 kB / 0.5151 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/0.3414, allocations: 52.02 kB / 0.5151 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.3426, allocations: 0.6707 MB / 0.5158 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004489/0.3471, allocations: 2.511 MB / 0.5182 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006067/0.3477, allocations: 342.4 kB / 0.5185 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.3481, allocations: 230.5 kB / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.251e-05/0.3481, allocations: 12.22 kB / 0.5188 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.3482, allocations: 33.7 kB / 0.5188 GB, free: 14.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.645e-06/0.3482, allocations: 4 kB / 0.5188 GB, free: 14.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002199/0.3504, allocations: 1.359 MB / 0.5201 GB, free: 13.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.3505, allocations: 80.55 kB / 0.5202 GB, free: 13.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/0.3509, allocations: 305.2 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.3509, allocations: 35 kB / 0.5205 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.3511, allocations: 259.6 kB / 0.5208 GB, free: 13.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.3513, allocations: 165.1 kB / 0.5209 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.3514, allocations: 89.44 kB / 0.521 GB, free: 12.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3516, allocations: 350.1 kB / 0.5214 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002912/0.3519, allocations: 200.8 kB / 0.5216 GB, free: 12.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004305/0.3523, allocations: 368 kB / 0.5219 GB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007987/0.3531, allocations: 0.6078 MB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3531, allocations: 1.625 kB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009486/0.3541, allocations: 0.6307 MB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3541, allocations: 7.25 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3541, allocations: 5.594 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.3542, allocations: 8.547 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.3546, allocations: 116.8 kB / 0.5232 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.3546, allocations: 12.97 kB / 0.5233 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.3549, allocations: 25.7 kB / 0.5233 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-05/0.3549, allocations: 18.22 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.0002896/0.3552, allocations: 223.4 kB / 0.5235 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.3553, allocations: 40.91 kB / 0.5236 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008945/0.3562, allocations: 495.3 kB / 0.524 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-05/0.3563, allocations: 15.45 kB / 0.524 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3563, allocations: 2.359 kB / 0.524 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.3563, allocations: 1.594 kB / 0.524 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.3583, allocations: 1.109 MB / 0.5251 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3583, allocations: 3.328 kB / 0.5251 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.3587, allocations: 73.19 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3587, allocations: 6.562 kB / 0.5252 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.3588, allocations: 8.922 kB / 0.5252 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.3588, allocations: 3.438 kB / 0.5252 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3588, allocations: 1.312 kB / 0.5252 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.36, allocations: 0.835 MB / 0.526 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.231e-05/0.3601, allocations: 112.6 kB / 0.5261 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.665e-05/0.3602, allocations: 9.5 kB / 0.5262 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.3604, allocations: 16.34 kB / 0.5262 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.3605, allocations: 21.59 kB / 0.5262 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.3605, allocations: 12.92 kB / 0.5262 GB, free: 9.988 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002313/0.3607, allocations: 212.9 kB / 0.5264 GB, free: 9.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.763e-06/0.3607, allocations: 5.344 kB / 0.5264 GB, free: 9.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005088/0.3613, allocations: 110.3 kB / 0.5265 GB, free: 9.852 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.00171/0.363, allocations: 1.396 MB / 0.5279 GB, free: 8.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008541/0.3638, allocations: 497.1 kB / 0.5284 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3639, allocations: 3.938 kB / 0.5284 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.3642, allocations: 231.4 kB / 0.5286 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005327/0.3648, allocations: 75.03 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.005776/0.3706, allocations: 4.406 MB / 0.5329 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005738/0.3712, allocations: 0.8691 MB / 0.5338 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.3715, allocations: 130.4 kB / 0.5339 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.3718, allocations: 138.8 kB / 0.5341 GB, free: 5.09 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3718, allocations: 1.125 kB / 0.5341 GB, free: 5.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.4065, allocations: 7.924 MB / 0.5418 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.349/8.756, allocations: 4.062 kB / 0.5418 GB, free: 0.7188 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)