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.001671/0.001672, allocations: 101.9 kB / 17.06 MB, free: 6.145 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.002016/0.002015, allocations: 195 kB / 18 MB, free: 5.219 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3786, allocations: 58.05 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007026/0.3856, allocations: 6.337 MB / 0.5098 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003943/0.3896, allocations: 2.668 MB / 0.5124 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006938/0.3904, allocations: 30.97 kB / 0.5124 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.3917, allocations: 329.7 kB / 0.5127 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001998/0.3937, allocations: 0.593 MB / 0.5133 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007882/0.3946, allocations: 279.3 kB / 0.5136 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002056/0.3966, allocations: 1.198 MB / 0.5148 GB, free: 12 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.3982, allocations: 0.8907 MB / 0.5156 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001458/0.3997, allocations: 495.4 kB / 0.5161 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.401, allocations: 0.5307 MB / 0.5166 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.4012, allocations: 85.66 kB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.4024, allocations: 328 kB / 0.517 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005563/0.4029, allocations: 340 kB / 0.5173 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007809/0.4037, allocations: 459.7 kB / 0.5178 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.406, allocations: 1.369 MB / 0.5191 GB, free: 14.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.406, allocations: 1.125 kB / 0.5191 GB, free: 14.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.406, allocations: 0 / 0.5191 GB, free: 14.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.4061, allocations: 0 / 0.5191 GB, free: 14.2 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.002728/0.4088, allocations: 1.144 MB / 0.5202 GB, free: 13.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4089, allocations: 14.03 kB / 0.5202 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.409, allocations: 122.2 kB / 0.5204 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000678/0.4097, allocations: 132.1 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001512/0.4112, allocations: 0.6937 MB / 0.5212 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.4114, allocations: 81.19 kB / 0.5212 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.4115, allocations: 68.48 kB / 0.5213 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.4135, allocations: 0.955 MB / 0.5222 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/0.4136, allocations: 1.891 kB / 0.5222 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.807e-05/0.4137, allocations: 30.83 kB / 0.5223 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.4138, allocations: 54.03 kB / 0.5223 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.4153, allocations: 0.7795 MB / 0.5231 GB, free: 12.01 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.006226/0.4216, allocations: 3.832 MB / 0.5268 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009801/0.4226, allocations: 0.5198 MB / 0.5273 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.423, allocations: 237.8 kB / 0.5276 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.4231, allocations: 3.625 kB / 0.5276 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.4231, allocations: 45.55 kB / 0.5276 GB, free: 8.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.405e-06/0.4231, allocations: 0 / 0.5276 GB, free: 8.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01165/0.4348, allocations: 3.747 MB / 0.5313 GB, free: 6.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.459e-05/0.4349, allocations: 121.5 kB / 0.5314 GB, free: 6.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000914/0.4358, allocations: 0.5238 MB / 0.5319 GB, free: 6.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.449e-05/0.4359, allocations: 35.89 kB / 0.5319 GB, free: 6.086 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.4363, allocations: 403.7 kB / 0.5323 GB, free: 5.727 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.4365, allocations: 190.3 kB / 0.5325 GB, free: 5.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.4368, allocations: 131.2 kB / 0.5326 GB, free: 5.477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.437, allocations: 370 kB / 0.533 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005245/0.4375, allocations: 280.8 kB / 0.5332 GB, free: 4.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007225/0.4382, allocations: 0.5063 MB / 0.5337 GB, free: 4.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.4398, allocations: 0.8474 MB / 0.5346 GB, free: 3.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.036e-05/0.4399, allocations: 2.25 kB / 0.5346 GB, free: 3.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.004049/0.4439, allocations: 1.444 MB / 0.536 GB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.444, allocations: 8.75 kB / 0.536 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.444, allocations: 11.94 kB / 0.536 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.4457, allocations: 456.1 kB / 0.5364 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00044/0.4461, allocations: 113.1 kB / 0.5365 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.4579, allocations: 9.13 MB / 0.5455 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009176/0.4588, allocations: 34.55 kB / 0.5455 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.459, allocations: 32.53 kB / 0.5455 GB, free: 10.73 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.0007185/0.4597, allocations: 309.1 kB / 0.5458 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.46, allocations: 56.22 kB / 0.5459 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003264/0.4632, allocations: 1.311 MB / 0.5471 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.4633, allocations: 6.406 kB / 0.5472 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.4633, allocations: 3.906 kB / 0.5472 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.4633, allocations: 5.359 kB / 0.5472 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005614/0.4689, allocations: 2.248 MB / 0.5494 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.469, allocations: 4.938 kB / 0.5494 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.4693, allocations: 60.27 kB / 0.5494 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.4708, allocations: 427.1 kB / 0.5498 GB, free: 7.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-05/0.4709, allocations: 23.98 kB / 0.5499 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.4814, allocations: 8.853 MB / 0.5585 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.4815, allocations: 4.031 kB / 0.5585 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003884/0.4854, allocations: 1.856 MB / 0.5603 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004869/0.4859, allocations: 196.3 kB / 0.5605 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.486, allocations: 16 kB / 0.5605 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.4865, allocations: 23.92 kB / 0.5605 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.4867, allocations: 60.48 kB / 0.5606 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.4868, allocations: 19.98 kB / 0.5606 GB, free: 11.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005311/0.4873, allocations: 374.8 kB / 0.561 GB, free: 11.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4873, allocations: 0 / 0.561 GB, free: 11.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001199/0.4885, allocations: 248 kB / 0.5612 GB, free: 11.35 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.004227/0.4928, allocations: 2.42 MB / 0.5636 GB, free: 8.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.4952, allocations: 1.346 MB / 0.5649 GB, free: 7.441 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.4952, allocations: 4 kB / 0.5649 GB, free: 7.438 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.4968, allocations: 0.9668 MB / 0.5658 GB, free: 6.418 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4982, allocations: 176.8 kB / 0.566 GB, free: 6.246 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.5129, allocations: 7.649 MB / 0.5735 GB, free: 14.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.514, allocations: 1.048 MB / 0.5745 GB, free: 13.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004345/0.5145, allocations: 109.7 kB / 0.5746 GB, free: 13.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004447/0.5149, allocations: 271.3 kB / 0.5749 GB, free: 12.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.515, allocations: 7.875 kB / 0.5749 GB, free: 12.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05557/0.5705, allocations: 22.01 MB / 0.5964 GB, free: 6.984 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.3, allocations: 5.25 kB / 0.5964 GB, free: 6.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)