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.001636/0.001636, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.001804/0.001805, allocations: 191 kB / 18 MB, free: 5.098 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.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2025/0.2025, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3098, allocations: 58.05 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00602/0.3158, allocations: 4.796 MB / 0.5083 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.3178, allocations: 1.479 MB / 0.5097 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.318, allocations: 18.47 kB / 0.5097 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003612/0.3184, allocations: 112 kB / 0.5099 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005904/0.319, allocations: 269.9 kB / 0.5101 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.3193, allocations: 134.1 kB / 0.5102 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006232/0.32, allocations: 0.5871 MB / 0.5108 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.3204, allocations: 398.8 kB / 0.5112 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/0.3207, allocations: 243.5 kB / 0.5114 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003166/0.321, allocations: 240 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.3211, allocations: 38.44 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.234e-05/0.3212, allocations: 40.19 kB / 0.5117 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.3213, allocations: 117.9 kB / 0.5118 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.3215, allocations: 226 kB / 0.5121 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005538/0.3221, allocations: 0.5105 MB / 0.5126 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3221, allocations: 0 / 0.5126 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3221, allocations: 0 / 0.5126 GB, free: 1.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.3221, allocations: 0 / 0.5126 GB, free: 1.684 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.001104/0.3232, allocations: 0.7164 MB / 0.5133 GB, free: 1.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.3233, allocations: 14.14 kB / 0.5133 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.702e-05/0.3234, allocations: 82.33 kB / 0.5133 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.752e-05/0.3234, allocations: 47.27 kB / 0.5134 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.324, allocations: 434.4 kB / 0.5138 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.601e-05/0.3241, allocations: 57.2 kB / 0.5139 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.3242, allocations: 39.02 kB / 0.5139 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006295/0.3248, allocations: 432 kB / 0.5143 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3248, allocations: 2.172 kB / 0.5143 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.3249, allocations: 16.09 kB / 0.5143 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.3249, allocations: 9.25 kB / 0.5143 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005005/0.3254, allocations: 276 kB / 0.5146 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.3275, allocations: 1.829 MB / 0.5164 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.3278, allocations: 181.2 kB / 0.5166 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.328, allocations: 73.2 kB / 0.5166 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.328, allocations: 3.484 kB / 0.5166 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.3281, allocations: 45.06 kB / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.3281, allocations: 0 / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001338/0.3294, allocations: 0.7181 MB / 0.5174 GB, free: 14.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.3295, allocations: 106 kB / 0.5175 GB, free: 13.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.3299, allocations: 316.8 kB / 0.5178 GB, free: 13.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3299, allocations: 30.77 kB / 0.5178 GB, free: 13.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.3301, allocations: 242.8 kB / 0.518 GB, free: 13.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.23e-05/0.3302, allocations: 78.67 kB / 0.5181 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-05/0.3303, allocations: 63.33 kB / 0.5182 GB, free: 13.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3304, allocations: 344.3 kB / 0.5185 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.3306, allocations: 72.05 kB / 0.5186 GB, free: 13.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.3309, allocations: 201.8 kB / 0.5188 GB, free: 12.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.3313, allocations: 297.3 kB / 0.519 GB, free: 12.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3314, allocations: 1 kB / 0.5191 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005892/0.332, allocations: 332.7 kB / 0.5194 GB, free: 12.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.332, allocations: 7.156 kB / 0.5194 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.332, allocations: 4.812 kB / 0.5194 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.332, allocations: 10.94 kB / 0.5194 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.3323, allocations: 80.83 kB / 0.5195 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.3323, allocations: 10.48 kB / 0.5195 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.3325, allocations: 16.66 kB / 0.5195 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.3326, allocations: 20.8 kB / 0.5195 GB, free: 12.47 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.0001774/0.3328, allocations: 175.4 kB / 0.5197 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.597e-05/0.3328, allocations: 35.67 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004039/0.3332, allocations: 199.5 kB / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3333, allocations: 3.688 kB / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3333, allocations: 0 / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.3333, allocations: 2.531 kB / 0.5199 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009476/0.3343, allocations: 0.6117 MB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3343, allocations: 1.219 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.3345, allocations: 41.34 kB / 0.5205 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3345, allocations: 3.125 kB / 0.5206 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3345, allocations: 10.58 kB / 0.5206 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3346, allocations: 2.062 kB / 0.5206 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3346, allocations: 1.609 kB / 0.5206 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005901/0.3352, allocations: 456.6 kB / 0.521 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-05/0.3353, allocations: 111.6 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.545e-05/0.3353, allocations: 2.625 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.3355, allocations: 8.281 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.3356, allocations: 23.27 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.3356, allocations: 5.734 kB / 0.5211 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.3358, allocations: 221.5 kB / 0.5214 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3358, allocations: 0 / 0.5214 GB, free: 11.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004136/0.3362, allocations: 70.75 kB / 0.5214 GB, free: 11.16 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.0008123/0.3371, allocations: 0.9852 MB / 0.5224 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004234/0.3375, allocations: 203.9 kB / 0.5226 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3375, allocations: 0 / 0.5226 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.3377, allocations: 82.59 kB / 0.5227 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.3383, allocations: 97.84 kB / 0.5228 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.3425, allocations: 3.422 MB / 0.5261 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.3429, allocations: 0.8132 MB / 0.5269 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.3431, allocations: 54.36 kB / 0.5269 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.3433, allocations: 120.5 kB / 0.5271 GB, free: 6.91 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3433, allocations: 4 kB / 0.5271 GB, free: 6.906 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.3699, allocations: 7.026 MB / 0.5339 GB, free: 4.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.924/8.294, allocations: 8.234 kB / 0.5339 GB, free: 4.848 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)