Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",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.001293/0.001293, allocations: 108.9 kB / 17.06 MB, free: 5.969 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.001305/0.001305, allocations: 200 kB / 18.01 MB, free: 5.051 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.449/1.449, 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-master/package.mo): time 0.1825/0.1825, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 67.89 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3789, allocations: 58.06 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008128/0.3871, allocations: 7.071 MB / 0.5105 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004691/0.3918, allocations: 2.86 MB / 0.5133 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006271/0.3924, allocations: 35.19 kB / 0.5134 GB, free: 496 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.3937, allocations: 369.4 kB / 0.5137 GB, free: 280 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002201/0.3959, allocations: 0.7881 MB / 0.5145 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008108/0.3967, allocations: 299.2 kB / 0.5148 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002196/0.3989, allocations: 1.575 MB / 0.5163 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002194/0.4012, allocations: 1.432 MB / 0.5177 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.4027, allocations: 0.6409 MB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001284/0.404, allocations: 0.7441 MB / 0.5191 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.4042, allocations: 144.2 kB / 0.5192 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.4055, allocations: 0.6785 MB / 0.5199 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006036/0.4062, allocations: 0.5023 MB / 0.5203 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008544/0.407, allocations: 0.6587 MB / 0.521 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003326/0.4104, allocations: 2.119 MB / 0.5231 GB, free: 12.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.4104, allocations: 0 / 0.5231 GB, free: 12.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4104, allocations: 1.344 kB / 0.5231 GB, free: 12.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.602e-05/0.4104, allocations: 4 kB / 0.5231 GB, free: 12.18 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003967/0.4144, allocations: 1.577 MB / 0.5246 GB, free: 11.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.4145, allocations: 13.98 kB / 0.5246 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002572/0.4147, allocations: 172.8 kB / 0.5248 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.4158, allocations: 169 kB / 0.5249 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.4176, allocations: 0.8507 MB / 0.5258 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002493/0.4178, allocations: 202.6 kB / 0.526 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.418, allocations: 102 kB / 0.5261 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003272/0.4213, allocations: 1.472 MB / 0.5275 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/0.4214, allocations: 2.984 kB / 0.5275 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.4215, allocations: 41.41 kB / 0.5275 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001582/0.4217, allocations: 74.7 kB / 0.5276 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00247/0.4242, allocations: 1.266 MB / 0.5289 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008327/0.4325, allocations: 5.188 MB / 0.5339 GB, free: 4.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.4345, allocations: 1.028 MB / 0.5349 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00086/0.4354, allocations: 0.5014 MB / 0.5354 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.556e-05/0.4354, allocations: 8.062 kB / 0.5354 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/0.4355, allocations: 50.59 kB / 0.5355 GB, free: 3.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.856e-06/0.4355, allocations: 3.938 kB / 0.5355 GB, free: 3.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006875/0.4424, allocations: 3.097 MB / 0.5385 GB, free: 2.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.4425, allocations: 111.6 kB / 0.5386 GB, free: 1.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009974/0.4435, allocations: 0.6905 MB / 0.5393 GB, free: 1.539 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.376e-05/0.4436, allocations: 37.08 kB / 0.5393 GB, free: 1.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/0.444, allocations: 488.6 kB / 0.5398 GB, free: 1.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.4442, allocations: 283.6 kB / 0.54 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/0.4446, allocations: 191.7 kB / 0.5402 GB, free: 0.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002723/0.4449, allocations: 395.5 kB / 0.5406 GB, free: 340 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000779/0.4457, allocations: 440.3 kB / 0.541 GB, free: 120 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009664/0.4467, allocations: 0.7193 MB / 0.5417 GB, free: 15.53 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.006003/0.4527, allocations: 2.573 MB / 0.5442 GB, free: 13.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.4527, allocations: 2.938 kB / 0.5442 GB, free: 13.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002549/0.4553, allocations: 1.316 MB / 0.5455 GB, free: 12.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.4553, allocations: 15.94 kB / 0.5455 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4553, allocations: 8 kB / 0.5456 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002665/0.4556, allocations: 81.66 kB / 0.5456 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008871/0.4565, allocations: 231.9 kB / 0.5459 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.4579, allocations: 1.442 MB / 0.5473 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008612/0.4587, allocations: 75.81 kB / 0.5473 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.007e-05/0.4588, allocations: 40 kB / 0.5474 GB, free: 10.85 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007579/0.4596, allocations: 425.3 kB / 0.5478 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.4598, allocations: 87.47 kB / 0.5479 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.4618, allocations: 0.9824 MB / 0.5488 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/0.4618, allocations: 19.92 kB / 0.5488 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4619, allocations: 3.938 kB / 0.5488 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4619, allocations: 3.984 kB / 0.5488 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.4659, allocations: 2.269 MB / 0.5511 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4659, allocations: 0 / 0.5511 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007419/0.4666, allocations: 143.9 kB / 0.5512 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001152/0.4668, allocations: 24.84 kB / 0.5512 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.672e-05/0.4668, allocations: 16 kB / 0.5512 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.468, allocations: 1.382 MB / 0.5526 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.468, allocations: 0 / 0.5526 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.4705, allocations: 1.666 MB / 0.5542 GB, free: 3.566 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005118/0.4711, allocations: 248.5 kB / 0.5545 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.4712, allocations: 12 kB / 0.5545 GB, free: 3.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005146/0.4717, allocations: 47.94 kB / 0.5545 GB, free: 3.246 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.4719, allocations: 68.41 kB / 0.5546 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.931e-05/0.472, allocations: 20 kB / 0.5546 GB, free: 3.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007249/0.4727, allocations: 486.9 kB / 0.5551 GB, free: 2.691 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4727, allocations: 0 / 0.5551 GB, free: 2.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001189/0.4739, allocations: 259.9 kB / 0.5553 GB, free: 2.438 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003371/0.4773, allocations: 2.264 MB / 0.5575 GB, free: 144 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.4797, allocations: 1.242 MB / 0.5587 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4797, allocations: 0 / 0.5587 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009809/0.4807, allocations: 0.6149 MB / 0.5593 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4821, allocations: 229.8 kB / 0.5595 GB, free: 14.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.4967, allocations: 9.028 MB / 0.5684 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009995/0.4978, allocations: 1.165 MB / 0.5695 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007701/0.4985, allocations: 254.9 kB / 0.5697 GB, free: 3.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005416/0.4991, allocations: 343.3 kB / 0.5701 GB, free: 2.844 MB / 430.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4991, allocations: 0 / 0.5701 GB, free: 2.844 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05961/0.5587, allocations: 20.92 MB / 0.5905 GB, free: 14.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.81, allocations: 23.8 kB / 0.5905 GB, free: 14.12 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)