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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001083/0.001083, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.252/1.252, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001693/0.001693, allocations: 132.6 kB / 256.6 MB, free: 4.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1672/0.1672, allocations: 37.95 MB / 338.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 71.89 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08466/0.0859, allocations: 52.19 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006217/0.09216, allocations: 7.155 MB / 461.1 MB, free: 9.387 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.09587, allocations: 2.976 MB / 464.1 MB, free: 6.398 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005995/0.0965, allocations: 43.75 kB / 464.2 MB, free: 6.355 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.09753, allocations: 310.5 kB / 464.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.0989, allocations: 0.533 MB / 465 MB, free: 5.516 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00061/0.09952, allocations: 251.7 kB / 465.2 MB, free: 5.27 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1007, allocations: 1.629 MB / 466.9 MB, free: 3.637 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006791/0.1014, allocations: 0.6881 MB / 467.6 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004196/0.1018, allocations: 426.2 kB / 468 MB, free: 2.523 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.1024, allocations: 0.541 MB / 468.5 MB, free: 1.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.071e-05/0.1024, allocations: 52 kB / 468.6 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004155/0.1029, allocations: 283.5 kB / 468.8 MB, free: 1.652 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.1031, allocations: 295.2 kB / 469.1 MB, free: 1.363 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002829/0.1034, allocations: 425.9 kB / 469.6 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008978/0.1043, allocations: 1.32 MB / 470.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1043, allocations: 0 / 470.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1043, allocations: 0 / 470.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1043, allocations: 0 / 470.9 MB, free: 15.62 MB / 330.7 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.002246/0.1066, allocations: 1.137 MB / 472 MB, free: 14.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1066, allocations: 8.031 kB / 472 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/0.1073, allocations: 131.8 kB / 472.1 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.1084, allocations: 0.6707 MB / 472.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.1085, allocations: 75.7 kB / 472.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.1086, allocations: 71.97 kB / 473 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.1101, allocations: 0.953 MB / 473.9 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.1101, allocations: 7.938 kB / 473.9 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.578e-05/0.1102, allocations: 28 kB / 473.9 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.1103, allocations: 57.28 kB / 474 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.1116, allocations: 0.7818 MB / 474.8 MB, free: 11.55 MB / 330.7 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.00485/0.1164, allocations: 3.863 MB / 478.6 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000778/0.1172, allocations: 0.5245 MB / 479.2 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.1176, allocations: 230.5 kB / 479.4 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.1177, allocations: 7.984 kB / 479.4 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.1177, allocations: 51.08 kB / 479.5 MB, free: 6.605 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 2.505e-06/0.1177, allocations: 0 / 479.5 MB, free: 6.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.01056/0.1283, allocations: 3.758 MB / 483.2 MB, free: 2.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.1284, allocations: 111.2 kB / 483.3 MB, free: 2.547 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006046/0.129, allocations: 0.5222 MB / 483.8 MB, free: 2.016 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.1291, allocations: 37.7 kB / 483.9 MB, free: 1.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.1293, allocations: 399 kB / 484.3 MB, free: 1.574 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.1295, allocations: 189.3 kB / 484.5 MB, free: 1.387 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.1297, allocations: 130.6 kB / 484.6 MB, free: 1.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1298, allocations: 370.8 kB / 484.9 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.1303, allocations: 281.8 kB / 485.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005607/0.1309, allocations: 0.4994 MB / 485.7 MB, free: 4 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.1319, allocations: 0.852 MB / 486.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.132, allocations: 4 kB / 486.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003101/0.1351, allocations: 1.457 MB / 488 MB, free: 13.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1351, allocations: 8 kB / 488 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1351, allocations: 8 kB / 488 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.1366, allocations: 459.3 kB / 488.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004176/0.137, allocations: 119.8 kB / 488.6 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00931/0.1464, allocations: 8.431 MB / 497 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.147, allocations: 35.83 kB / 497.1 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.62e-05/0.1471, allocations: 28 kB / 497.1 MB, free: 3.898 MB / 346.7 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.0004766/0.1476, allocations: 313.6 kB / 497.4 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.1477, allocations: 63.25 kB / 497.5 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003013/0.1508, allocations: 1.307 MB / 498.8 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.1508, allocations: 4 kB / 498.8 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.1508, allocations: 4 kB / 498.8 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.1508, allocations: 7.984 kB / 498.8 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004365/0.1552, allocations: 2.237 MB / 0.4893 GB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1552, allocations: 4 kB / 0.4893 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.1555, allocations: 67.88 kB / 0.4894 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.1569, allocations: 435 kB / 0.4898 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.157, allocations: 19.94 kB / 0.4898 GB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008995/0.166, allocations: 8.189 MB / 0.4978 GB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/0.166, allocations: 12.03 kB / 0.4978 GB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006329/0.1724, allocations: 3.515 MB / 0.5012 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003962/0.1728, allocations: 192.3 kB / 0.5014 GB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.1729, allocations: 12 kB / 0.5014 GB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.1734, allocations: 23.92 kB / 0.5015 GB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.1737, allocations: 64.41 kB / 0.5015 GB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-05/0.1737, allocations: 16 kB / 0.5015 GB, free: 2.488 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000481/0.1742, allocations: 370.9 kB / 0.5019 GB, free: 2.129 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1742, allocations: 0 / 0.5019 GB, free: 2.129 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001306/0.1756, allocations: 288 kB / 0.5022 GB, free: 1.848 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_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.0004929/0.1761, allocations: 143.1 kB / 0.5023 GB, free: 1.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002331/0.1784, allocations: 1.326 MB / 0.5036 GB, free: 332 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1784, allocations: 1.438 kB / 0.5036 GB, free: 332 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1543/0.3328, allocations: 0.9614 MB / 0.5045 GB, free: 65.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3339, allocations: 165.5 kB / 0.5047 GB, free: 65.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.3367, allocations: 2.36 MB / 0.507 GB, free: 64.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000642/0.3373, allocations: 1.066 MB / 0.508 GB, free: 63.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004163/0.3378, allocations: 113.9 kB / 0.5081 GB, free: 63.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.3379, allocations: 44.97 kB / 0.5082 GB, free: 63.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3379, allocations: 5.391 kB / 0.5082 GB, free: 63.31 MB / 362.7 MB Notification: Performance of Templates: time 0.02532/0.3632, allocations: 15.01 MB / 0.5228 GB, free: 58.36 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)