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.001682/0.001682, allocations: 112.4 kB / 17.05 MB, free: 6.086 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.001832/0.001832, allocations: 192 kB / 17.99 MB, free: 5.184 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.629/1.629, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.187/0.187, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 63.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3973, allocations: 58.06 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.00799/0.4053, allocations: 6.329 MB / 0.5098 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004436/0.4098, allocations: 2.663 MB / 0.5124 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006169/0.4104, allocations: 30.72 kB / 0.5124 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.4116, allocations: 340 kB / 0.5127 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001528/0.4132, allocations: 0.585 MB / 0.5133 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008299/0.414, allocations: 287.8 kB / 0.5136 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.4158, allocations: 1.193 MB / 0.5148 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.4171, allocations: 0.8838 MB / 0.5156 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009119/0.418, allocations: 486.3 kB / 0.5161 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008758/0.4189, allocations: 0.5345 MB / 0.5166 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.419, allocations: 85.91 kB / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008118/0.4199, allocations: 327.4 kB / 0.517 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004265/0.4203, allocations: 332 kB / 0.5173 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006649/0.421, allocations: 468.3 kB / 0.5178 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002009/0.423, allocations: 1.38 MB / 0.5191 GB, free: 14.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.423, allocations: 0 / 0.5191 GB, free: 14.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.423, allocations: 1.344 kB / 0.5191 GB, free: 14.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.4231, allocations: 0 / 0.5191 GB, free: 14.12 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.002468/0.4255, allocations: 1.167 MB / 0.5203 GB, free: 13.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.4256, allocations: 14.52 kB / 0.5203 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.4258, allocations: 121.2 kB / 0.5204 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000681/0.4265, allocations: 136.8 kB / 0.5205 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.4278, allocations: 0.6888 MB / 0.5212 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.428, allocations: 94.69 kB / 0.5213 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.4281, allocations: 63.84 kB / 0.5213 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.4298, allocations: 0.9542 MB / 0.5223 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/0.4298, allocations: 3.5 kB / 0.5223 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-05/0.4299, allocations: 26.88 kB / 0.5223 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.96e-05/0.43, allocations: 53.83 kB / 0.5224 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.4314, allocations: 0.7827 MB / 0.5231 GB, free: 11.91 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.005658/0.4371, allocations: 3.842 MB / 0.5269 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.4385, allocations: 0.5294 MB / 0.5274 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006844/0.4392, allocations: 233.1 kB / 0.5276 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.489e-05/0.4392, allocations: 4.031 kB / 0.5276 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.4393, allocations: 45.31 kB / 0.5277 GB, free: 8.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 3.326e-06/0.4393, allocations: 0 / 0.5277 GB, free: 8.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01712/0.4564, allocations: 3.772 MB / 0.5313 GB, free: 6.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.4566, allocations: 117.7 kB / 0.5314 GB, free: 6.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.4577, allocations: 0.5277 MB / 0.532 GB, free: 6.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.951e-05/0.4578, allocations: 36.67 kB / 0.532 GB, free: 5.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004357/0.4583, allocations: 404.4 kB / 0.5324 GB, free: 5.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000286/0.4586, allocations: 206.1 kB / 0.5326 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003313/0.4589, allocations: 127.3 kB / 0.5327 GB, free: 5.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002681/0.4592, allocations: 370.5 kB / 0.5331 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007894/0.46, allocations: 280.4 kB / 0.5333 GB, free: 4.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.4612, allocations: 0.506 MB / 0.5338 GB, free: 4.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001879/0.4631, allocations: 0.8483 MB / 0.5346 GB, free: 3.789 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.4631, allocations: 2.219 kB / 0.5346 GB, free: 3.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.004244/0.4673, allocations: 1.448 MB / 0.5361 GB, free: 2.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.4674, allocations: 12.09 kB / 0.5361 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.4674, allocations: 11.95 kB / 0.5361 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/0.4691, allocations: 456.1 kB / 0.5365 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004663/0.4696, allocations: 114 kB / 0.5366 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.4815, allocations: 9.137 MB / 0.5456 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007684/0.4823, allocations: 35.17 kB / 0.5456 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-05/0.4824, allocations: 28.75 kB / 0.5456 GB, free: 10.61 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.0005947/0.483, allocations: 312.3 kB / 0.5459 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.4832, allocations: 64.95 kB / 0.546 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003235/0.4864, allocations: 1.299 MB / 0.5472 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.4864, allocations: 6.875 kB / 0.5472 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4865, allocations: 8.109 kB / 0.5473 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.4865, allocations: 4 kB / 0.5473 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004791/0.4913, allocations: 2.244 MB / 0.5495 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.4913, allocations: 1.406 kB / 0.5495 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003682/0.4917, allocations: 65.3 kB / 0.5495 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/0.4931, allocations: 424.6 kB / 0.5499 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.485e-05/0.4932, allocations: 16.31 kB / 0.5499 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01088/0.5041, allocations: 8.875 MB / 0.5586 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5041, allocations: 0 / 0.5586 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004034/0.5081, allocations: 1.856 MB / 0.5604 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004508/0.5086, allocations: 200.6 kB / 0.5606 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-05/0.5087, allocations: 12 kB / 0.5606 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.5091, allocations: 19.98 kB / 0.5606 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.5094, allocations: 60.48 kB / 0.5607 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.5094, allocations: 20 kB / 0.5607 GB, free: 11.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005688/0.51, allocations: 374.8 kB / 0.5611 GB, free: 11.54 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.51, allocations: 0 / 0.5611 GB, free: 11.54 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001231/0.5112, allocations: 251.9 kB / 0.5613 GB, free: 11.3 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.00442/0.5157, allocations: 2.425 MB / 0.5637 GB, free: 8.777 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.5182, allocations: 1.354 MB / 0.565 GB, free: 7.371 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5182, allocations: 0 / 0.565 GB, free: 7.371 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.5199, allocations: 0.9628 MB / 0.5659 GB, free: 6.355 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.5211, allocations: 185.9 kB / 0.5661 GB, free: 6.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.5352, allocations: 7.687 MB / 0.5736 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009062/0.5362, allocations: 1.048 MB / 0.5746 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004476/0.5366, allocations: 105.7 kB / 0.5747 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003984/0.5371, allocations: 271.3 kB / 0.575 GB, free: 12.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5371, allocations: 0 / 0.575 GB, free: 12.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0651/0.6022, allocations: 21.58 MB / 0.5961 GB, free: 7.312 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.7, allocations: 16.64 kB / 0.5961 GB, free: 7.301 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)