Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.001367/0.001367, allocations: 110.2 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.001362/0.001362, allocations: 193.4 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.454/1.454, 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.196/0.196, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 63.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3075, allocations: 58.05 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005292/0.3129, allocations: 4.43 MB / 0.5079 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.315, allocations: 1.425 MB / 0.5093 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.3152, allocations: 13.62 kB / 0.5093 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.3162, allocations: 375.4 kB / 0.5097 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004912/0.3167, allocations: 223 kB / 0.5099 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006594/0.3174, allocations: 244.4 kB / 0.5101 GB, free: 3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005503/0.3179, allocations: 0.5361 MB / 0.5107 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004124/0.3184, allocations: 279.5 kB / 0.5109 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003086/0.3187, allocations: 240.7 kB / 0.5111 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/0.3191, allocations: 296.9 kB / 0.5114 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.602e-05/0.3192, allocations: 31.12 kB / 0.5115 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002833/0.3195, allocations: 138.2 kB / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.3197, allocations: 229.2 kB / 0.5118 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.3199, allocations: 237.1 kB / 0.512 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006527/0.3206, allocations: 0.5675 MB / 0.5126 GB, free: 1.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3206, allocations: 1.859 kB / 0.5126 GB, free: 1.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3206, allocations: 0 / 0.5126 GB, free: 1.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.3206, allocations: 0 / 0.5126 GB, free: 1.984 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001073/0.3217, allocations: 0.7463 MB / 0.5133 GB, free: 1.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3218, allocations: 10.09 kB / 0.5133 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.963e-05/0.3218, allocations: 90.08 kB / 0.5134 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.3224, allocations: 85.38 kB / 0.5135 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005471/0.3229, allocations: 407.6 kB / 0.5139 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.323, allocations: 30.17 kB / 0.5139 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3231, allocations: 50.61 kB / 0.514 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007912/0.3239, allocations: 0.6223 MB / 0.5146 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.3239, allocations: 5.75 kB / 0.5146 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.069e-05/0.3239, allocations: 22 kB / 0.5146 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.3241, allocations: 28.7 kB / 0.5146 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000688/0.3248, allocations: 482.7 kB / 0.5151 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.3282, allocations: 2.897 MB / 0.5179 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.3287, allocations: 227.9 kB / 0.5181 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.3289, allocations: 145.8 kB / 0.5183 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.329, allocations: 4.484 kB / 0.5183 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.329, allocations: 40.12 kB / 0.5183 GB, free: 13.94 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.773e-06/0.329, allocations: 1.156 kB / 0.5183 GB, free: 13.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001676/0.3307, allocations: 0.9749 MB / 0.5193 GB, free: 13.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.3308, allocations: 80.91 kB / 0.5193 GB, free: 13.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.3311, allocations: 327.3 kB / 0.5197 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.3312, allocations: 30.95 kB / 0.5197 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.3314, allocations: 277.2 kB / 0.5199 GB, free: 12.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.752e-05/0.3315, allocations: 109.7 kB / 0.5201 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3316, allocations: 92.02 kB / 0.5201 GB, free: 12.69 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.3318, allocations: 351.3 kB / 0.5205 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.3321, allocations: 144.8 kB / 0.5206 GB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.3324, allocations: 354.2 kB / 0.521 GB, free: 12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006703/0.3331, allocations: 0.5178 MB / 0.5215 GB, free: 11.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.3331, allocations: 2.188 kB / 0.5215 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008072/0.334, allocations: 0.5271 MB / 0.522 GB, free: 11.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.334, allocations: 8.25 kB / 0.522 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.334, allocations: 11.09 kB / 0.522 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.334, allocations: 9.156 kB / 0.522 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004023/0.3344, allocations: 119.1 kB / 0.5221 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.3345, allocations: 14.06 kB / 0.5221 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.3347, allocations: 31.47 kB / 0.5222 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.3348, allocations: 23.66 kB / 0.5222 GB, free: 11.37 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * 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.0002377/0.335, allocations: 221 kB / 0.5224 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.047e-05/0.3351, allocations: 30.94 kB / 0.5224 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005876/0.3357, allocations: 365 kB / 0.5228 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3357, allocations: 8.062 kB / 0.5228 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3357, allocations: 0 / 0.5228 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3357, allocations: 3.016 kB / 0.5228 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.3371, allocations: 0.8884 MB / 0.5236 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3371, allocations: 1.781 kB / 0.5237 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000313/0.3375, allocations: 63.16 kB / 0.5237 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3375, allocations: 6.312 kB / 0.5237 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.3375, allocations: 13.88 kB / 0.5237 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3375, allocations: 2.625 kB / 0.5237 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3375, allocations: 5.062 kB / 0.5237 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000779/0.3383, allocations: 0.5788 MB / 0.5243 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.715e-05/0.3384, allocations: 116.4 kB / 0.5244 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.3385, allocations: 12.88 kB / 0.5244 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.3387, allocations: 15.28 kB / 0.5244 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.3387, allocations: 16.2 kB / 0.5245 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.3388, allocations: 12.27 kB / 0.5245 GB, free: 10.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.339, allocations: 220.9 kB / 0.5247 GB, free: 9.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.339, allocations: 0 / 0.5247 GB, free: 9.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004461/0.3394, allocations: 93.12 kB / 0.5248 GB, free: 9.887 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 (31): * Single equations (assignments): 30 * Array equations: 0 * 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.001082/0.3405, allocations: 1.129 MB / 0.5259 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.3411, allocations: 366.4 kB / 0.5262 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3411, allocations: 0 / 0.5262 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.3414, allocations: 146.4 kB / 0.5264 GB, free: 8.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.3419, allocations: 65.55 kB / 0.5264 GB, free: 8.848 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.3469, allocations: 3.995 MB / 0.5303 GB, free: 6.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005386/0.3475, allocations: 0.8497 MB / 0.5312 GB, free: 5.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000333/0.3478, allocations: 135.2 kB / 0.5313 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.348, allocations: 139.3 kB / 0.5314 GB, free: 5.316 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.348, allocations: 0.9062 kB / 0.5314 GB, free: 5.316 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0317/0.3797, allocations: 7.088 MB / 0.5383 GB, free: 2.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.321/8.701, allocations: 9.203 kB / 0.5383 GB, free: 2.43 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)