Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_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.001197/0.001197, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001252/0.001252, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3257, allocations: 58.06 MB / 0.5036 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008757/0.3345, allocations: 6.323 MB / 0.5098 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004571/0.3391, allocations: 2.661 MB / 0.5124 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000812/0.34, allocations: 26.31 kB / 0.5124 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.3414, allocations: 347 kB / 0.5127 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00198/0.3434, allocations: 0.5905 MB / 0.5133 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009643/0.3444, allocations: 287.1 kB / 0.5136 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002058/0.3465, allocations: 1.203 MB / 0.5148 GB, free: 68 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.3482, allocations: 0.8839 MB / 0.5156 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001195/0.3494, allocations: 494.9 kB / 0.5161 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.3509, allocations: 0.5354 MB / 0.5166 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004632/0.3514, allocations: 85.28 kB / 0.5167 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.3528, allocations: 322.6 kB / 0.517 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009001/0.3538, allocations: 340.7 kB / 0.5173 GB, free: 15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.3551, allocations: 452.3 kB / 0.5178 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00308/0.3582, allocations: 1.385 MB / 0.5191 GB, free: 14.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3583, allocations: 0 / 0.5191 GB, free: 14.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3583, allocations: 1.156 kB / 0.5191 GB, free: 14.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.249e-05/0.3583, allocations: 0 / 0.5191 GB, free: 14.25 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.003193/0.3615, allocations: 1.166 MB / 0.5203 GB, free: 13.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3616, allocations: 13.64 kB / 0.5203 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001728/0.3618, allocations: 122.2 kB / 0.5204 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007269/0.3625, allocations: 135.9 kB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.3639, allocations: 0.7012 MB / 0.5212 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.364, allocations: 78.92 kB / 0.5213 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.3642, allocations: 63.84 kB / 0.5213 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.3658, allocations: 0.9549 MB / 0.5223 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.971e-05/0.3659, allocations: 5.375 kB / 0.5223 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.366, allocations: 30.55 kB / 0.5223 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001079/0.3661, allocations: 58.38 kB / 0.5224 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.3674, allocations: 0.776 MB / 0.5231 GB, free: 12.03 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.005515/0.3729, allocations: 3.848 MB / 0.5269 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009103/0.3739, allocations: 0.5187 MB / 0.5274 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004611/0.3743, allocations: 236.8 kB / 0.5276 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.3744, allocations: 4.062 kB / 0.5276 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.3744, allocations: 38.5 kB / 0.5277 GB, free: 8.852 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.485e-06/0.3744, allocations: 0 / 0.5277 GB, free: 8.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01158/0.386, allocations: 3.78 MB / 0.5313 GB, free: 6.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.3862, allocations: 108.4 kB / 0.5314 GB, free: 6.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009249/0.3871, allocations: 0.5241 MB / 0.532 GB, free: 6.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.579e-05/0.3872, allocations: 37.02 kB / 0.532 GB, free: 6.074 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003274/0.3875, allocations: 411.8 kB / 0.5324 GB, free: 5.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002349/0.3878, allocations: 203.9 kB / 0.5326 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.388, allocations: 126.8 kB / 0.5327 GB, free: 5.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002071/0.3882, allocations: 369.5 kB / 0.5331 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000537/0.3888, allocations: 285.4 kB / 0.5333 GB, free: 4.949 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000708/0.3895, allocations: 0.5062 MB / 0.5338 GB, free: 4.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.3907, allocations: 0.8468 MB / 0.5347 GB, free: 3.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3907, allocations: 6.75 kB / 0.5347 GB, free: 3.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003677/0.3944, allocations: 1.456 MB / 0.5361 GB, free: 2.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.3945, allocations: 7.562 kB / 0.5361 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.3945, allocations: 7.375 kB / 0.5361 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001596/0.3961, allocations: 457.5 kB / 0.5365 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.3966, allocations: 112.9 kB / 0.5366 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.4084, allocations: 9.145 MB / 0.5456 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008455/0.4093, allocations: 26.84 kB / 0.5456 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.4094, allocations: 32.17 kB / 0.5456 GB, free: 10.68 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.0006205/0.41, allocations: 313.2 kB / 0.5459 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002428/0.4103, allocations: 65.77 kB / 0.546 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003279/0.4136, allocations: 1.299 MB / 0.5473 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.4136, allocations: 11 kB / 0.5473 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.4136, allocations: 2.812 kB / 0.5473 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.4136, allocations: 5.297 kB / 0.5473 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005334/0.419, allocations: 2.244 MB / 0.5495 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/0.419, allocations: 5.188 kB / 0.5495 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003784/0.4194, allocations: 61.77 kB / 0.5495 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/0.4209, allocations: 437.1 kB / 0.5499 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.421, allocations: 15.98 kB / 0.55 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.4315, allocations: 8.868 MB / 0.5586 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.4316, allocations: 8.078 kB / 0.5586 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003843/0.4354, allocations: 1.848 MB / 0.5604 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004688/0.4359, allocations: 196.6 kB / 0.5606 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.4361, allocations: 12 kB / 0.5606 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004767/0.4366, allocations: 24.19 kB / 0.5607 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.4368, allocations: 68.34 kB / 0.5607 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.4368, allocations: 19.98 kB / 0.5607 GB, free: 11.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006117/0.4374, allocations: 366.8 kB / 0.5611 GB, free: 11.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4374, allocations: 0 / 0.5611 GB, free: 11.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001192/0.4386, allocations: 255.9 kB / 0.5613 GB, free: 11.19 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.004265/0.4429, allocations: 2.424 MB / 0.5637 GB, free: 8.668 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.4454, allocations: 1.346 MB / 0.565 GB, free: 7.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4454, allocations: 4.125 kB / 0.565 GB, free: 7.266 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.4469, allocations: 0.9743 MB / 0.566 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.4481, allocations: 173 kB / 0.5661 GB, free: 6.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.4621, allocations: 7.677 MB / 0.5736 GB, free: 13.99 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009209/0.4631, allocations: 1.052 MB / 0.5747 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004726/0.4636, allocations: 113.7 kB / 0.5748 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004401/0.464, allocations: 267.3 kB / 0.575 GB, free: 12.54 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4641, allocations: 0 / 0.575 GB, free: 12.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05983/0.5239, allocations: 21.58 MB / 0.5961 GB, free: 7.176 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.13, allocations: 9.188 kB / 0.5961 GB, free: 7.168 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)