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.001263/0.001269, allocations: 109 kB / 17.06 MB, free: 5.969 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.001239/0.001239, allocations: 200 kB / 18.01 MB, free: 5.051 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1776/0.1776, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 67.83 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3233, allocations: 58.05 MB / 0.5036 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007127/0.3304, allocations: 6.333 MB / 0.5098 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00376/0.3342, allocations: 2.663 MB / 0.5124 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005073/0.3347, allocations: 31.19 kB / 0.5124 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.3358, allocations: 342 kB / 0.5128 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.3371, allocations: 0.5812 MB / 0.5133 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006435/0.3377, allocations: 291.2 kB / 0.5136 GB, free: 420 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.3392, allocations: 1.197 MB / 0.5148 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3404, allocations: 0.8799 MB / 0.5156 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008188/0.3412, allocations: 490.2 kB / 0.5161 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008147/0.342, allocations: 0.5349 MB / 0.5166 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.3422, allocations: 86.59 kB / 0.5167 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000729/0.3429, allocations: 323.2 kB / 0.517 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004093/0.3433, allocations: 335.7 kB / 0.5173 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000619/0.3439, allocations: 460.4 kB / 0.5178 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001754/0.3457, allocations: 1.377 MB / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3457, allocations: 0 / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3457, allocations: 0 / 0.5191 GB, free: 14.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.3457, allocations: 1.219 kB / 0.5191 GB, free: 14.05 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.00234/0.3481, allocations: 1.174 MB / 0.5203 GB, free: 13.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3481, allocations: 12.98 kB / 0.5203 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001831/0.3483, allocations: 114.3 kB / 0.5204 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006672/0.349, allocations: 137.2 kB / 0.5205 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3503, allocations: 0.7006 MB / 0.5212 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.3505, allocations: 82.14 kB / 0.5213 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.3506, allocations: 68.77 kB / 0.5213 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.3522, allocations: 0.9536 MB / 0.5223 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.3523, allocations: 7.75 kB / 0.5223 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.3523, allocations: 26.25 kB / 0.5223 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.867e-05/0.3524, allocations: 54.62 kB / 0.5224 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3538, allocations: 0.7744 MB / 0.5231 GB, free: 11.83 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.005427/0.3592, allocations: 3.852 MB / 0.5269 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008422/0.3601, allocations: 0.5108 MB / 0.5274 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004403/0.3605, allocations: 245.7 kB / 0.5276 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.3606, allocations: 8.219 kB / 0.5276 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.3606, allocations: 38.14 kB / 0.5277 GB, free: 8.641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.3607, allocations: 0 / 0.5277 GB, free: 8.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01099/0.3716, allocations: 3.775 MB / 0.5313 GB, free: 6.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.3717, allocations: 113.8 kB / 0.5314 GB, free: 6.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006809/0.3724, allocations: 0.5272 MB / 0.532 GB, free: 5.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.3725, allocations: 36.27 kB / 0.532 GB, free: 5.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003186/0.3728, allocations: 408.3 kB / 0.5324 GB, free: 5.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.373, allocations: 202.3 kB / 0.5326 GB, free: 5.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.3733, allocations: 127.9 kB / 0.5327 GB, free: 5.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.3735, allocations: 373.7 kB / 0.5331 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.374, allocations: 280.7 kB / 0.5333 GB, free: 4.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006754/0.3747, allocations: 0.4979 MB / 0.5338 GB, free: 4.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.3759, allocations: 0.8519 MB / 0.5346 GB, free: 3.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.3759, allocations: 2.25 kB / 0.5346 GB, free: 3.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003394/0.3793, allocations: 1.456 MB / 0.5361 GB, free: 2.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3794, allocations: 8.375 kB / 0.5361 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3794, allocations: 6.938 kB / 0.5361 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.3809, allocations: 460.4 kB / 0.5365 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.3814, allocations: 110.2 kB / 0.5366 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/0.3928, allocations: 9.142 MB / 0.5456 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/0.3936, allocations: 31.14 kB / 0.5456 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-05/0.3936, allocations: 28.47 kB / 0.5456 GB, free: 10.56 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.0005661/0.3942, allocations: 313.1 kB / 0.5459 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.3944, allocations: 64.45 kB / 0.546 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003103/0.3975, allocations: 1.301 MB / 0.5472 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3975, allocations: 9.969 kB / 0.5472 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3975, allocations: 3.906 kB / 0.5473 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.3975, allocations: 3.984 kB / 0.5473 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004716/0.4022, allocations: 2.245 MB / 0.5494 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.4023, allocations: 1.156 kB / 0.5494 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/0.4026, allocations: 56.92 kB / 0.5495 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.404, allocations: 440.2 kB / 0.5499 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.804e-05/0.404, allocations: 16.42 kB / 0.5499 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.4149, allocations: 8.864 MB / 0.5586 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.4149, allocations: 0 / 0.5586 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.4189, allocations: 1.852 MB / 0.5604 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004344/0.4193, allocations: 200.7 kB / 0.5606 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.943e-05/0.4194, allocations: 12.06 kB / 0.5606 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.4198, allocations: 27.92 kB / 0.5606 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.4201, allocations: 60.36 kB / 0.5607 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.4201, allocations: 19.98 kB / 0.5607 GB, free: 11.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005797/0.4207, allocations: 374.8 kB / 0.5611 GB, free: 11.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4207, allocations: 0 / 0.5611 GB, free: 11.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00115/0.4219, allocations: 243.9 kB / 0.5613 GB, free: 11.28 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.004347/0.4262, allocations: 2.439 MB / 0.5637 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002428/0.4287, allocations: 1.35 MB / 0.565 GB, free: 7.348 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.4287, allocations: 8.125 kB / 0.565 GB, free: 7.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.4302, allocations: 0.9665 MB / 0.566 GB, free: 6.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.4313, allocations: 168.8 kB / 0.5661 GB, free: 6.156 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/0.4446, allocations: 7.681 MB / 0.5736 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008171/0.4455, allocations: 1.052 MB / 0.5746 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004014/0.4459, allocations: 113.7 kB / 0.5748 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.4462, allocations: 267.3 kB / 0.575 GB, free: 12.62 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4462, allocations: 0 / 0.575 GB, free: 12.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06372/0.51, allocations: 21.58 MB / 0.5961 GB, free: 7.258 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.15, allocations: 1.188 kB / 0.5961 GB, free: 7.258 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)