Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001326/0.001326, allocations: 114 kB / 17.06 MB, free: 6.086 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.001288/0.001288, allocations: 193.4 kB / 17.99 MB, free: 5.18 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.395/1.395, 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.1859/0.1859, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 67.89 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3376, allocations: 58.06 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005657/0.3433, allocations: 4.798 MB / 0.5083 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.3453, allocations: 1.47 MB / 0.5097 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.3456, allocations: 19.19 kB / 0.5097 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000366/0.346, allocations: 110.5 kB / 0.5099 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006136/0.3466, allocations: 273.4 kB / 0.5101 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.347, allocations: 138.4 kB / 0.5102 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006663/0.3476, allocations: 0.5871 MB / 0.5108 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000452/0.3481, allocations: 394.6 kB / 0.5112 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.3484, allocations: 238.8 kB / 0.5114 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003279/0.3487, allocations: 234.2 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.454e-05/0.3488, allocations: 39.22 kB / 0.5117 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.3489, allocations: 44.56 kB / 0.5117 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.349, allocations: 124.8 kB / 0.5118 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.3492, allocations: 222.1 kB / 0.5121 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000613/0.3498, allocations: 0.5029 MB / 0.5125 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3499, allocations: 3.938 kB / 0.5126 GB, free: 1.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3499, allocations: 1.156 kB / 0.5126 GB, free: 1.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.3499, allocations: 0 / 0.5126 GB, free: 1.719 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001174/0.3511, allocations: 0.7236 MB / 0.5133 GB, free: 1.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.3511, allocations: 9.641 kB / 0.5133 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.532e-05/0.3512, allocations: 70.55 kB / 0.5133 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.3513, allocations: 47.28 kB / 0.5134 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005862/0.3519, allocations: 427 kB / 0.5138 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.072e-05/0.352, allocations: 56.08 kB / 0.5138 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.025e-05/0.3521, allocations: 40.53 kB / 0.5139 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006479/0.3527, allocations: 435.9 kB / 0.5143 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.3528, allocations: 1.25 kB / 0.5143 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.3528, allocations: 16.34 kB / 0.5143 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.3528, allocations: 8.562 kB / 0.5143 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000497/0.3533, allocations: 276.7 kB / 0.5146 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.3557, allocations: 1.836 MB / 0.5164 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.356, allocations: 178.2 kB / 0.5165 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.3562, allocations: 72.38 kB / 0.5166 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.3562, allocations: 6.688 kB / 0.5166 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.3563, allocations: 34.56 kB / 0.5167 GB, free: 14.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.914e-06/0.3563, allocations: 0 / 0.5167 GB, free: 14.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00145/0.3577, allocations: 0.7196 MB / 0.5174 GB, free: 14.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.3578, allocations: 118 kB / 0.5175 GB, free: 14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004429/0.3583, allocations: 308.5 kB / 0.5178 GB, free: 13.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3583, allocations: 31.23 kB / 0.5178 GB, free: 13.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.3585, allocations: 245.8 kB / 0.518 GB, free: 13.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.448e-05/0.3586, allocations: 75.52 kB / 0.5181 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.3587, allocations: 65.98 kB / 0.5182 GB, free: 13.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.3589, allocations: 339.9 kB / 0.5185 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.3591, allocations: 76.64 kB / 0.5186 GB, free: 13.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.3594, allocations: 199.9 kB / 0.5188 GB, free: 12.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005144/0.36, allocations: 289.4 kB / 0.519 GB, free: 12.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.36, allocations: 1.219 kB / 0.519 GB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006546/0.3606, allocations: 336.2 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3607, allocations: 7.625 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3607, allocations: 13.22 kB / 0.5194 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3607, allocations: 9.562 kB / 0.5194 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.361, allocations: 73.53 kB / 0.5194 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/0.361, allocations: 16.12 kB / 0.5195 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.3612, allocations: 14.38 kB / 0.5195 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.3613, allocations: 17.94 kB / 0.5195 GB, free: 12.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * 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.0002056/0.3615, allocations: 174.3 kB / 0.5197 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-05/0.3616, allocations: 35.78 kB / 0.5197 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004276/0.362, allocations: 195.8 kB / 0.5199 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.362, allocations: 2.844 kB / 0.5199 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.362, allocations: 5.562 kB / 0.5199 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.362, allocations: 2.609 kB / 0.5199 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.3631, allocations: 0.6103 MB / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3631, allocations: 0 / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.3634, allocations: 46.41 kB / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3634, allocations: 2.094 kB / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.3634, allocations: 3.219 kB / 0.5205 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3634, allocations: 6.578 kB / 0.5205 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3634, allocations: 1.125 kB / 0.5205 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006786/0.3641, allocations: 452.5 kB / 0.521 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.3642, allocations: 111.1 kB / 0.5211 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.3643, allocations: 11.23 kB / 0.5211 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.3645, allocations: 8.703 kB / 0.5211 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/0.3645, allocations: 15 kB / 0.5211 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.3645, allocations: 5.156 kB / 0.5211 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002449/0.3648, allocations: 222.5 kB / 0.5213 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3648, allocations: 0 / 0.5213 GB, free: 11.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004502/0.3653, allocations: 70.12 kB / 0.5214 GB, free: 11.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * 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.0009607/0.3662, allocations: 0.9849 MB / 0.5224 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004484/0.3667, allocations: 199.5 kB / 0.5226 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3667, allocations: 0 / 0.5226 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.3669, allocations: 83.69 kB / 0.5226 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006829/0.3676, allocations: 106.4 kB / 0.5227 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004822/0.3724, allocations: 3.427 MB / 0.5261 GB, free: 7.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005335/0.373, allocations: 0.8151 MB / 0.5269 GB, free: 7.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.3732, allocations: 49.31 kB / 0.5269 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.3734, allocations: 120.4 kB / 0.527 GB, free: 6.957 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3734, allocations: 1.094 kB / 0.527 GB, free: 6.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.4082, allocations: 7.015 MB / 0.5339 GB, free: 4.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.634, allocations: 8.078 kB / 0.5339 GB, free: 4.879 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)