Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.001571/0.001571, 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.00179/0.00179, 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.498/1.498, 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-master/package.mo): time 0.188/0.188, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 67.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4341, allocations: 58.06 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008064/0.4422, allocations: 6.318 MB / 0.5098 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004844/0.4471, allocations: 2.664 MB / 0.5124 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008283/0.448, allocations: 30.5 kB / 0.5124 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.4494, allocations: 338.5 kB / 0.5127 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.4512, allocations: 0.5905 MB / 0.5133 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.4523, allocations: 288.4 kB / 0.5136 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002134/0.4544, allocations: 1.202 MB / 0.5148 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/0.4559, allocations: 0.883 MB / 0.5156 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.457, allocations: 498.7 kB / 0.5161 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009103/0.4579, allocations: 0.5348 MB / 0.5166 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.4581, allocations: 86.41 kB / 0.5167 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008908/0.459, allocations: 318 kB / 0.517 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004531/0.4594, allocations: 340.8 kB / 0.5173 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006696/0.4601, allocations: 460.2 kB / 0.5178 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002224/0.4623, allocations: 1.381 MB / 0.5191 GB, free: 14.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4624, allocations: 0 / 0.5191 GB, free: 14.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4624, allocations: 0 / 0.5191 GB, free: 14.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.4624, allocations: 1.125 kB / 0.5191 GB, free: 14.17 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002674/0.4651, allocations: 1.171 MB / 0.5203 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.4651, allocations: 13.02 kB / 0.5203 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001911/0.4653, allocations: 117.8 kB / 0.5204 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00076/0.4661, allocations: 136.1 kB / 0.5205 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.4677, allocations: 0.7027 MB / 0.5212 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.4678, allocations: 80.62 kB / 0.5213 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.468, allocations: 65.28 kB / 0.5214 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.4698, allocations: 0.9538 MB / 0.5223 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.4699, allocations: 7.453 kB / 0.5223 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/0.4699, allocations: 25.84 kB / 0.5223 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.4701, allocations: 61.77 kB / 0.5224 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.4716, allocations: 0.7725 MB / 0.5231 GB, free: 11.95 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006341/0.478, allocations: 3.848 MB / 0.5269 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000905/0.4789, allocations: 0.514 MB / 0.5274 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/0.4794, allocations: 245.3 kB / 0.5276 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.4794, allocations: 8.141 kB / 0.5276 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.4795, allocations: 38.45 kB / 0.5277 GB, free: 8.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.655e-06/0.4795, allocations: 0 / 0.5277 GB, free: 8.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01131/0.4908, allocations: 3.781 MB / 0.5314 GB, free: 6.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/0.4909, allocations: 109.1 kB / 0.5315 GB, free: 6.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007928/0.4917, allocations: 0.5235 MB / 0.532 GB, free: 6.055 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.4918, allocations: 36.2 kB / 0.532 GB, free: 6.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003063/0.4921, allocations: 405.3 kB / 0.5324 GB, free: 5.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.4923, allocations: 202.3 kB / 0.5326 GB, free: 5.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.4925, allocations: 127 kB / 0.5327 GB, free: 5.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4927, allocations: 374.5 kB / 0.5331 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004781/0.4932, allocations: 280.4 kB / 0.5333 GB, free: 4.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006892/0.4939, allocations: 0.5066 MB / 0.5338 GB, free: 4.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.4951, allocations: 0.852 MB / 0.5347 GB, free: 3.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.4951, allocations: 1.406 kB / 0.5347 GB, free: 3.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003526/0.4987, allocations: 1.455 MB / 0.5361 GB, free: 2.875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.4987, allocations: 15.27 kB / 0.5361 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.4988, allocations: 6.875 kB / 0.5361 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/0.5004, allocations: 457.1 kB / 0.5365 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000471/0.5009, allocations: 114 kB / 0.5367 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/0.5125, allocations: 9.127 MB / 0.5456 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008526/0.5134, allocations: 31.11 kB / 0.5456 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-05/0.5134, allocations: 28.75 kB / 0.5456 GB, free: 10.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006354/0.5141, allocations: 313.1 kB / 0.5459 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.5143, allocations: 64.45 kB / 0.546 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.5174, allocations: 1.303 MB / 0.5473 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.5174, allocations: 11 kB / 0.5473 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.5174, allocations: 3.5 kB / 0.5473 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.5174, allocations: 1.375 kB / 0.5473 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004726/0.5222, allocations: 2.244 MB / 0.5495 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.5222, allocations: 5.594 kB / 0.5495 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.5225, allocations: 60.58 kB / 0.5495 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001357/0.5239, allocations: 444.5 kB / 0.5499 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.524, allocations: 12 kB / 0.55 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009761/0.5337, allocations: 8.875 MB / 0.5586 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.5338, allocations: 0 / 0.5586 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003817/0.5376, allocations: 1.849 MB / 0.5604 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/0.5381, allocations: 200.6 kB / 0.5606 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.038e-05/0.5382, allocations: 16.2 kB / 0.5606 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003916/0.5386, allocations: 19.98 kB / 0.5607 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.5388, allocations: 64.34 kB / 0.5607 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/0.5389, allocations: 16 kB / 0.5607 GB, free: 11.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005781/0.5395, allocations: 374.8 kB / 0.5611 GB, free: 11.48 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5395, allocations: 0 / 0.5611 GB, free: 11.48 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001349/0.5408, allocations: 251.9 kB / 0.5613 GB, free: 11.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004017/0.5448, allocations: 2.425 MB / 0.5637 GB, free: 8.719 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002467/0.5473, allocations: 1.354 MB / 0.565 GB, free: 7.312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5474, allocations: 4.062 kB / 0.565 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.5488, allocations: 0.9665 MB / 0.566 GB, free: 6.289 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.5498, allocations: 175.3 kB / 0.5661 GB, free: 6.121 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.5634, allocations: 7.69 MB / 0.5736 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008103/0.5643, allocations: 1.052 MB / 0.5747 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004403/0.5647, allocations: 113.7 kB / 0.5748 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003547/0.5651, allocations: 263.3 kB / 0.575 GB, free: 12.58 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5651, allocations: 0 / 0.575 GB, free: 12.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08114/0.6463, allocations: 21.57 MB / 0.5961 GB, free: 7.262 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/13.09, allocations: 16.11 kB / 0.5961 GB, free: 7.25 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)