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.001646/0.001645, allocations: 106 kB / 17.06 MB, free: 6.016 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.001734/0.001734, allocations: 195 kB / 18 MB, free: 5.094 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.417/1.417, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1884/0.1884, allocations: 38.05 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3564, allocations: 58.05 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007724/0.3642, allocations: 6.336 MB / 0.5098 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004903/0.3691, allocations: 2.664 MB / 0.5124 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006237/0.3698, allocations: 26.38 kB / 0.5124 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.3711, allocations: 338 kB / 0.5127 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001926/0.373, allocations: 0.5888 MB / 0.5133 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3741, allocations: 279.7 kB / 0.5136 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002227/0.3763, allocations: 1.202 MB / 0.5148 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.3777, allocations: 0.8827 MB / 0.5156 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008196/0.3785, allocations: 495 kB / 0.5161 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009742/0.3795, allocations: 0.5392 MB / 0.5166 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.3797, allocations: 86.03 kB / 0.5167 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.3808, allocations: 330.2 kB / 0.517 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005157/0.3813, allocations: 332.6 kB / 0.5173 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006906/0.382, allocations: 456.3 kB / 0.5178 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001975/0.384, allocations: 1.373 MB / 0.5191 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.384, allocations: 0.7188 kB / 0.5191 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.384, allocations: 0 / 0.5191 GB, free: 14.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.074e-05/0.384, allocations: 1.406 kB / 0.5191 GB, free: 14.19 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.002549/0.3866, allocations: 1.143 MB / 0.5202 GB, free: 13.42 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.3867, allocations: 13.91 kB / 0.5202 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001643/0.3868, allocations: 122.5 kB / 0.5204 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00072/0.3876, allocations: 131.6 kB / 0.5205 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.3888, allocations: 0.6976 MB / 0.5212 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.389, allocations: 77.11 kB / 0.5212 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.3891, allocations: 65.09 kB / 0.5213 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.3908, allocations: 0.9543 MB / 0.5222 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.3908, allocations: 6.797 kB / 0.5222 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.668e-05/0.3909, allocations: 30.58 kB / 0.5223 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.3911, allocations: 57.38 kB / 0.5223 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.3924, allocations: 0.7764 MB / 0.5231 GB, free: 12 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.005509/0.398, allocations: 3.844 MB / 0.5268 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009203/0.3989, allocations: 0.514 MB / 0.5273 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004871/0.3994, allocations: 241.5 kB / 0.5276 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.3994, allocations: 4.703 kB / 0.5276 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.3995, allocations: 38.77 kB / 0.5276 GB, free: 8.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.174e-06/0.3995, allocations: 0 / 0.5276 GB, free: 8.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.0117/0.4112, allocations: 3.757 MB / 0.5313 GB, free: 6.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4113, allocations: 109.1 kB / 0.5314 GB, free: 6.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007886/0.4121, allocations: 0.5248 MB / 0.5319 GB, free: 6.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.051e-05/0.4122, allocations: 32.23 kB / 0.5319 GB, free: 6.129 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.4125, allocations: 403.1 kB / 0.5323 GB, free: 5.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.4126, allocations: 186.2 kB / 0.5325 GB, free: 5.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/0.4129, allocations: 130.5 kB / 0.5326 GB, free: 5.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.413, allocations: 382 kB / 0.533 GB, free: 5.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000502/0.4135, allocations: 280.9 kB / 0.5332 GB, free: 5.016 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006418/0.4142, allocations: 0.4988 MB / 0.5337 GB, free: 4.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.4154, allocations: 0.8509 MB / 0.5346 GB, free: 3.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.4154, allocations: 2.219 kB / 0.5346 GB, free: 3.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003522/0.4189, allocations: 1.449 MB / 0.536 GB, free: 3.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.419, allocations: 8.5 kB / 0.536 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.419, allocations: 6.875 kB / 0.536 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/0.4207, allocations: 448.4 kB / 0.5364 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004797/0.4212, allocations: 122.9 kB / 0.5365 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.4329, allocations: 9.132 MB / 0.5455 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007635/0.4337, allocations: 34.95 kB / 0.5455 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.602e-05/0.4338, allocations: 28.45 kB / 0.5455 GB, free: 10.77 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.0005989/0.4344, allocations: 313.1 kB / 0.5458 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001999/0.4347, allocations: 56.66 kB / 0.5459 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/0.4378, allocations: 1.314 MB / 0.5472 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.4379, allocations: 6.875 kB / 0.5472 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.4379, allocations: 2.75 kB / 0.5472 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.4379, allocations: 5.359 kB / 0.5472 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005173/0.4431, allocations: 2.244 MB / 0.5494 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.4431, allocations: 1.312 kB / 0.5494 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.4435, allocations: 60.86 kB / 0.5494 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.445, allocations: 433.6 kB / 0.5498 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/0.4451, allocations: 12 kB / 0.5498 GB, free: 7.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.4551, allocations: 8.859 MB / 0.5585 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.4552, allocations: 7.969 kB / 0.5585 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003833/0.459, allocations: 1.841 MB / 0.5603 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004722/0.4595, allocations: 204.2 kB / 0.5605 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.4597, allocations: 20.05 kB / 0.5605 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/0.4602, allocations: 15.98 kB / 0.5605 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.4604, allocations: 68.36 kB / 0.5606 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/0.4604, allocations: 16 kB / 0.5606 GB, free: 12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006126/0.461, allocations: 366.8 kB / 0.561 GB, free: 11.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.461, allocations: 0 / 0.561 GB, free: 11.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001273/0.4623, allocations: 252 kB / 0.5612 GB, free: 11.39 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.004141/0.4665, allocations: 2.429 MB / 0.5636 GB, free: 8.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.4688, allocations: 1.339 MB / 0.5649 GB, free: 7.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4688, allocations: 0 / 0.5649 GB, free: 7.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.4702, allocations: 0.9667 MB / 0.5658 GB, free: 6.461 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.4713, allocations: 179 kB / 0.566 GB, free: 6.289 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.4859, allocations: 7.662 MB / 0.5735 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.487, allocations: 1.048 MB / 0.5745 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004467/0.4875, allocations: 113.7 kB / 0.5746 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000415/0.4879, allocations: 267.3 kB / 0.5749 GB, free: 12.78 MB / 446.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4879, allocations: 0 / 0.5749 GB, free: 12.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05693/0.5448, allocations: 22 MB / 0.5963 GB, free: 7.031 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.68, allocations: 3.594 kB / 0.5964 GB, free: 7.031 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)