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.001764/0.001764, allocations: 114.2 kB / 17.07 MB, free: 5.988 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.002147/0.002147, allocations: 193.4 kB / 18 MB, free: 5.074 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.465/1.465, 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.1878/0.1878, allocations: 38.04 MB / 329.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 67.88 kB / 457.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3817, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007573/0.3893, allocations: 6.318 MB / 0.5098 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004482/0.3938, allocations: 2.667 MB / 0.5124 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006441/0.3945, allocations: 26.72 kB / 0.5124 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.3958, allocations: 347.5 kB / 0.5127 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001949/0.3978, allocations: 0.5808 MB / 0.5133 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007596/0.3986, allocations: 288.2 kB / 0.5136 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001841/0.4004, allocations: 1.197 MB / 0.5148 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.4019, allocations: 0.8865 MB / 0.5156 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.4029, allocations: 486.6 kB / 0.5161 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.404, allocations: 0.5344 MB / 0.5166 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002106/0.4042, allocations: 90.98 kB / 0.5167 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.4055, allocations: 322.1 kB / 0.517 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006639/0.4061, allocations: 332.7 kB / 0.5173 GB, free: 14.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009344/0.4071, allocations: 459.8 kB / 0.5178 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002607/0.4097, allocations: 1.38 MB / 0.5191 GB, free: 14.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4097, allocations: 1.375 kB / 0.5191 GB, free: 14.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4097, allocations: 0 / 0.5191 GB, free: 14.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.4097, allocations: 1.172 kB / 0.5191 GB, free: 14.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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002534/0.4123, allocations: 1.165 MB / 0.5202 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.4123, allocations: 14.83 kB / 0.5203 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001827/0.4125, allocations: 117.9 kB / 0.5204 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007054/0.4132, allocations: 135.6 kB / 0.5205 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.4148, allocations: 0.7025 MB / 0.5212 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.415, allocations: 81.83 kB / 0.5213 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.4152, allocations: 63.8 kB / 0.5213 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/0.4172, allocations: 0.9546 MB / 0.5223 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/0.4172, allocations: 6.688 kB / 0.5223 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.916e-05/0.4173, allocations: 27.55 kB / 0.5223 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/0.4174, allocations: 57.31 kB / 0.5223 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.4191, allocations: 0.7802 MB / 0.5231 GB, free: 11.94 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.007402/0.4265, allocations: 3.844 MB / 0.5269 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.4276, allocations: 0.5169 MB / 0.5274 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000513/0.4281, allocations: 245.2 kB / 0.5276 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.851e-05/0.4282, allocations: 8.875 kB / 0.5276 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.4283, allocations: 37.34 kB / 0.5276 GB, free: 8.758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 3.276e-06/0.4283, allocations: 1.375 kB / 0.5276 GB, free: 8.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01205/0.4403, allocations: 3.778 MB / 0.5313 GB, free: 6.527 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.4405, allocations: 109.5 kB / 0.5314 GB, free: 6.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008778/0.4413, allocations: 0.5274 MB / 0.532 GB, free: 6.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.431e-05/0.4414, allocations: 35.89 kB / 0.532 GB, free: 6.043 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003485/0.4418, allocations: 404.3 kB / 0.5324 GB, free: 5.684 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.442, allocations: 203.3 kB / 0.5326 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.4422, allocations: 135.2 kB / 0.5327 GB, free: 5.418 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.4424, allocations: 366.5 kB / 0.533 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005069/0.4429, allocations: 281.2 kB / 0.5333 GB, free: 4.926 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007621/0.4437, allocations: 0.5019 MB / 0.5338 GB, free: 4.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.4451, allocations: 0.8515 MB / 0.5346 GB, free: 3.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.4451, allocations: 2.062 kB / 0.5346 GB, free: 3.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003887/0.449, allocations: 1.459 MB / 0.5361 GB, free: 2.902 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.449, allocations: 8.094 kB / 0.5361 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/0.4491, allocations: 8.469 kB / 0.5361 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.4508, allocations: 455.8 kB / 0.5365 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005149/0.4514, allocations: 118 kB / 0.5366 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/0.4653, allocations: 9.132 MB / 0.5455 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.4665, allocations: 27.08 kB / 0.5456 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/0.4666, allocations: 36.58 kB / 0.5456 GB, free: 10.66 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.0007699/0.4673, allocations: 313.1 kB / 0.5459 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.4675, allocations: 68.52 kB / 0.546 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003235/0.4708, allocations: 1.303 MB / 0.5472 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.4708, allocations: 6.75 kB / 0.5472 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4708, allocations: 2.719 kB / 0.5473 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.4708, allocations: 5.297 kB / 0.5473 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004924/0.4757, allocations: 2.244 MB / 0.5494 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.4758, allocations: 1.594 kB / 0.5495 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003476/0.4761, allocations: 55.88 kB / 0.5495 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.4776, allocations: 437.6 kB / 0.5499 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.932e-05/0.4777, allocations: 19.94 kB / 0.5499 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.4888, allocations: 8.871 MB / 0.5586 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/0.4889, allocations: 8.078 kB / 0.5586 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.4931, allocations: 1.851 MB / 0.5604 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00052/0.4937, allocations: 204.7 kB / 0.5606 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.416e-05/0.4938, allocations: 12 kB / 0.5606 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004045/0.4942, allocations: 19.98 kB / 0.5606 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000248/0.4944, allocations: 64.5 kB / 0.5607 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.464e-05/0.4945, allocations: 16 kB / 0.5607 GB, free: 11.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000627/0.4951, allocations: 366.8 kB / 0.5611 GB, free: 11.45 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4951, allocations: 0 / 0.5611 GB, free: 11.45 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001455/0.4966, allocations: 255.9 kB / 0.5613 GB, free: 11.2 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.004742/0.5014, allocations: 2.424 MB / 0.5637 GB, free: 8.684 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.5043, allocations: 1.35 MB / 0.565 GB, free: 7.281 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5043, allocations: 0 / 0.565 GB, free: 7.281 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.506, allocations: 0.9666 MB / 0.5659 GB, free: 6.262 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.5072, allocations: 180.9 kB / 0.5661 GB, free: 6.086 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.5222, allocations: 7.681 MB / 0.5736 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.5234, allocations: 1.052 MB / 0.5746 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005816/0.524, allocations: 113.7 kB / 0.5748 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/0.5245, allocations: 267.3 kB / 0.575 GB, free: 12.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5245, allocations: 0 / 0.575 GB, free: 12.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06797/0.5924, allocations: 21.57 MB / 0.5961 GB, free: 7.191 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.75, allocations: 12.06 kB / 0.5961 GB, free: 7.184 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)