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.001449/0.001449, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.001476/0.001476, allocations: 200.1 kB / 18 MB, free: 5.168 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.4/1.4, 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.1884/0.1884, allocations: 38.03 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 457.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3147, allocations: 58.07 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006947/0.3216, allocations: 6.322 MB / 0.5098 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00434/0.326, allocations: 2.66 MB / 0.5124 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007585/0.3268, allocations: 30.28 kB / 0.5124 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.3283, allocations: 351.6 kB / 0.5128 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001726/0.33, allocations: 0.58 MB / 0.5133 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000878/0.3309, allocations: 284.9 kB / 0.5136 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001939/0.3328, allocations: 1.197 MB / 0.5148 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.3343, allocations: 0.8884 MB / 0.5156 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.3355, allocations: 485.3 kB / 0.5161 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001218/0.3367, allocations: 0.5311 MB / 0.5166 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002238/0.337, allocations: 86.56 kB / 0.5167 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009866/0.338, allocations: 328 kB / 0.517 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000568/0.3386, allocations: 334.8 kB / 0.5173 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008889/0.3395, allocations: 456.2 kB / 0.5178 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002184/0.3416, allocations: 1.38 MB / 0.5191 GB, free: 14.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3417, allocations: 0 / 0.5191 GB, free: 14.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3417, allocations: 1.062 kB / 0.5191 GB, free: 14.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.015e-05/0.3417, allocations: 0 / 0.5191 GB, free: 14.13 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.003175/0.3449, allocations: 1.171 MB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.345, allocations: 13.3 kB / 0.5203 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000204/0.3452, allocations: 127.1 kB / 0.5204 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007551/0.346, allocations: 135.7 kB / 0.5205 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.3475, allocations: 0.698 MB / 0.5212 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.3476, allocations: 82.09 kB / 0.5213 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.3478, allocations: 63.16 kB / 0.5213 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.3498, allocations: 0.9549 MB / 0.5223 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/0.3499, allocations: 3.734 kB / 0.5223 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.077e-05/0.35, allocations: 29.33 kB / 0.5223 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001232/0.3501, allocations: 59.02 kB / 0.5224 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.3517, allocations: 0.7791 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.006135/0.3578, allocations: 3.841 MB / 0.5269 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009285/0.3588, allocations: 0.5142 MB / 0.5274 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004721/0.3593, allocations: 241.2 kB / 0.5276 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.062e-05/0.3593, allocations: 8.359 kB / 0.5276 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.3594, allocations: 37.72 kB / 0.5277 GB, free: 8.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.645e-06/0.3594, allocations: 1.312 kB / 0.5277 GB, free: 8.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01129/0.3707, allocations: 3.779 MB / 0.5313 GB, free: 6.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.3708, allocations: 109 kB / 0.5315 GB, free: 6.344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008016/0.3716, allocations: 0.5325 MB / 0.532 GB, free: 6.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.85e-05/0.3717, allocations: 31.48 kB / 0.532 GB, free: 5.984 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.372, allocations: 409.1 kB / 0.5324 GB, free: 5.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.3723, allocations: 202 kB / 0.5326 GB, free: 5.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/0.3725, allocations: 127.3 kB / 0.5327 GB, free: 5.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.3727, allocations: 378.3 kB / 0.5331 GB, free: 5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005187/0.3732, allocations: 280.7 kB / 0.5333 GB, free: 4.859 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006906/0.3739, allocations: 0.502 MB / 0.5338 GB, free: 4.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.3752, allocations: 0.848 MB / 0.5347 GB, free: 3.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3753, allocations: 2.25 kB / 0.5347 GB, free: 3.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003543/0.3788, allocations: 1.452 MB / 0.5361 GB, free: 2.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.3789, allocations: 11.42 kB / 0.5361 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.3789, allocations: 11.81 kB / 0.5361 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/0.3805, allocations: 452.9 kB / 0.5365 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.381, allocations: 113.1 kB / 0.5366 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/0.3929, allocations: 9.134 MB / 0.5456 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008038/0.3937, allocations: 31.11 kB / 0.5456 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.968e-05/0.3938, 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.0005637/0.3944, allocations: 313.1 kB / 0.5459 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.3946, allocations: 64.45 kB / 0.546 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003199/0.3978, allocations: 1.3 MB / 0.5472 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3978, allocations: 13.52 kB / 0.5473 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.3978, allocations: 4.219 kB / 0.5473 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3978, allocations: 1.406 kB / 0.5473 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004824/0.4026, allocations: 2.239 MB / 0.5494 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.4027, allocations: 1.344 kB / 0.5494 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003557/0.403, allocations: 65.27 kB / 0.5495 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001462/0.4045, allocations: 443.1 kB / 0.5499 GB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.684e-05/0.4046, allocations: 20.06 kB / 0.55 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/0.4155, allocations: 8.878 MB / 0.5586 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.4156, allocations: 3.938 kB / 0.5586 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.4196, allocations: 1.845 MB / 0.5604 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003966/0.42, allocations: 204.6 kB / 0.5606 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.503e-05/0.4201, allocations: 12.06 kB / 0.5606 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/0.4205, allocations: 19.98 kB / 0.5607 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.4207, allocations: 56.42 kB / 0.5607 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.4208, allocations: 16 kB / 0.5607 GB, free: 11.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000521/0.4213, allocations: 374.8 kB / 0.5611 GB, free: 11.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4213, allocations: 0 / 0.5611 GB, free: 11.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001121/0.4224, allocations: 251.9 kB / 0.5613 GB, free: 11.27 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.004477/0.4269, allocations: 2.429 MB / 0.5637 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.4295, allocations: 1.346 MB / 0.565 GB, free: 7.352 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4295, allocations: 4.062 kB / 0.565 GB, free: 7.348 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.4311, allocations: 0.9666 MB / 0.566 GB, free: 6.328 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.4322, allocations: 188 kB / 0.5661 GB, free: 6.152 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.446, allocations: 7.677 MB / 0.5736 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008189/0.4468, allocations: 1.056 MB / 0.5747 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003961/0.4472, allocations: 117.6 kB / 0.5748 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003681/0.4476, allocations: 259.3 kB / 0.575 GB, free: 12.62 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4476, allocations: 0 / 0.575 GB, free: 12.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06387/0.5115, allocations: 21.58 MB / 0.5961 GB, free: 7.289 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.77, allocations: 11.59 kB / 0.5961 GB, free: 7.281 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)