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.001375/0.001374, allocations: 109.3 kB / 17.06 MB, free: 5.992 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.001534/0.001534, allocations: 200 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.35/1.35, 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.1822/0.1822, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3118, allocations: 58.05 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007735/0.3196, allocations: 7.083 MB / 0.5105 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.3237, allocations: 2.86 MB / 0.5133 GB, free: 500 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006486/0.3243, allocations: 27.41 kB / 0.5134 GB, free: 492 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.3256, allocations: 370.1 kB / 0.5137 GB, free: 276 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.3277, allocations: 0.7942 MB / 0.5145 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007793/0.3285, allocations: 302.3 kB / 0.5148 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002225/0.3307, allocations: 1.574 MB / 0.5163 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002176/0.3329, allocations: 1.429 MB / 0.5177 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.3343, allocations: 0.662 MB / 0.5184 GB, free: 14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.3358, allocations: 0.7498 MB / 0.5191 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004891/0.3363, allocations: 140 kB / 0.5192 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.3379, allocations: 0.6863 MB / 0.5199 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007777/0.3387, allocations: 0.4974 MB / 0.5204 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.3398, allocations: 0.6619 MB / 0.521 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002824/0.3426, allocations: 2.13 MB / 0.5231 GB, free: 12.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3427, allocations: 0 / 0.5231 GB, free: 12.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3427, allocations: 0 / 0.5231 GB, free: 12.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.229e-05/0.3427, allocations: 1.312 kB / 0.5231 GB, free: 12.16 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.003325/0.346, allocations: 1.577 MB / 0.5246 GB, free: 11.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3461, allocations: 12.84 kB / 0.5247 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002178/0.3463, allocations: 168.6 kB / 0.5248 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006787/0.347, allocations: 169.8 kB / 0.525 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.3487, allocations: 0.8528 MB / 0.5258 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.349, allocations: 199.8 kB / 0.526 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.3492, allocations: 104.6 kB / 0.5261 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00284/0.3521, allocations: 1.47 MB / 0.5275 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.76e-05/0.3521, allocations: 2.656 kB / 0.5275 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.3522, allocations: 42.98 kB / 0.5276 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.3524, allocations: 79.22 kB / 0.5277 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002124/0.3545, allocations: 1.261 MB / 0.5289 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00789/0.3624, allocations: 5.191 MB / 0.534 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.364, allocations: 1.023 MB / 0.535 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.3648, allocations: 0.5005 MB / 0.5354 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.981e-05/0.3649, allocations: 13.23 kB / 0.5355 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.3649, allocations: 46.59 kB / 0.5355 GB, free: 3.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.996e-06/0.3649, allocations: 0 / 0.5355 GB, free: 3.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006288/0.3712, allocations: 3.093 MB / 0.5385 GB, free: 2.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.3713, allocations: 110.1 kB / 0.5386 GB, free: 1.883 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008608/0.3722, allocations: 0.6959 MB / 0.5393 GB, free: 1.469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.77e-05/0.3722, allocations: 36.55 kB / 0.5393 GB, free: 1.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000307/0.3726, allocations: 488.8 kB / 0.5398 GB, free: 1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.3728, allocations: 279.9 kB / 0.5401 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.3731, allocations: 191 kB / 0.5403 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3733, allocations: 391.7 kB / 0.5406 GB, free: 276 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006998/0.374, allocations: 444.9 kB / 0.5411 GB, free: 52 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000856/0.3748, allocations: 0.7144 MB / 0.5418 GB, free: 15.46 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.005462/0.3803, allocations: 2.581 MB / 0.5443 GB, free: 13.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3803, allocations: 6.844 kB / 0.5443 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002158/0.3825, allocations: 1.313 MB / 0.5456 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3825, allocations: 16.12 kB / 0.5456 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.3825, allocations: 15.94 kB / 0.5456 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/0.3828, allocations: 77.67 kB / 0.5457 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008675/0.3837, allocations: 223.6 kB / 0.5459 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.3847, allocations: 1.457 MB / 0.5473 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007847/0.3855, allocations: 79.94 kB / 0.5474 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.864e-05/0.3856, 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.0006391/0.3863, allocations: 421.2 kB / 0.5478 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.3865, allocations: 83.47 kB / 0.5479 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.3881, allocations: 0.9745 MB / 0.5488 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.46e-05/0.3882, allocations: 27.92 kB / 0.5489 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3882, allocations: 0 / 0.5489 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3882, allocations: 3.984 kB / 0.5489 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003714/0.3919, allocations: 2.265 MB / 0.5511 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3919, allocations: 4 kB / 0.5511 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007143/0.3926, allocations: 143.8 kB / 0.5512 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.63e-05/0.3928, allocations: 24.84 kB / 0.5513 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.3928, allocations: 16 kB / 0.5513 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009175/0.3937, allocations: 1.386 MB / 0.5526 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3938, allocations: 0 / 0.5526 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.396, allocations: 1.666 MB / 0.5543 GB, free: 3.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004591/0.3965, allocations: 244.5 kB / 0.5545 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.3966, allocations: 19.98 kB / 0.5545 GB, free: 3.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.3972, allocations: 39.95 kB / 0.5545 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3973, allocations: 60.47 kB / 0.5546 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/0.3974, allocations: 16 kB / 0.5546 GB, free: 3.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005855/0.398, allocations: 490.9 kB / 0.5551 GB, free: 2.707 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.398, allocations: 4 kB / 0.5551 GB, free: 2.703 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001009/0.399, allocations: 259.9 kB / 0.5553 GB, free: 2.449 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.002847/0.4018, allocations: 2.253 MB / 0.5575 GB, free: 160 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.4039, allocations: 1.246 MB / 0.5588 GB, free: 14.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4039, allocations: 3.938 kB / 0.5588 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008792/0.4048, allocations: 0.6114 MB / 0.5594 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.406, allocations: 226.8 kB / 0.5596 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.4191, allocations: 9.04 MB / 0.5684 GB, free: 4.633 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000802/0.42, allocations: 1.161 MB / 0.5695 GB, free: 3.441 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007694/0.4208, allocations: 254.9 kB / 0.5698 GB, free: 3.188 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004972/0.4213, allocations: 347.3 kB / 0.5701 GB, free: 2.848 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4213, allocations: 0 / 0.5701 GB, free: 2.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04221/0.4635, allocations: 20.92 MB / 0.5905 GB, free: 14.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.28, allocations: 11.88 kB / 0.5905 GB, free: 14.14 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)