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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001169/0.001169, allocations: 190 kB / 17.54 MB, free: 6.066 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.382/1.382, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2362/0.2362, allocations: 38.03 MB / 329.4 MB, free: 8.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001328, allocations: 59.11 kB / 398.3 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1101, allocations: 58.06 MB / 456.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009606/0.1198, allocations: 7.164 MB / 463.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004954/0.1248, allocations: 2.918 MB / 466.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006619/0.1255, allocations: 47.69 kB / 466.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.1267, allocations: 302.5 kB / 466.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.128, allocations: 0.5291 MB / 467.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006537/0.1287, allocations: 259.7 kB / 467.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.13, allocations: 1.192 MB / 468.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.131, allocations: 0.8884 MB / 469.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006745/0.1317, allocations: 486.3 kB / 470.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007864/0.1325, allocations: 0.5645 MB / 470.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1327, allocations: 84 kB / 470.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005231/0.1332, allocations: 331.5 kB / 471.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003154/0.1335, allocations: 335.2 kB / 471.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004365/0.134, allocations: 458 kB / 471.8 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.1353, allocations: 1.344 MB / 473.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1353, allocations: 4 kB / 473.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1353, allocations: 0 / 473.2 MB, free: 7.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.1353, allocations: 0 / 473.2 MB, free: 7.477 MB / 350.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.002177/0.1375, allocations: 1.149 MB / 474.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1376, allocations: 15.89 kB / 474.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006586/0.1382, allocations: 135.8 kB / 474.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.1393, allocations: 0.6632 MB / 475.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.1394, allocations: 79.64 kB / 475.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.1396, allocations: 75.97 kB / 475.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.1411, allocations: 0.953 MB / 476.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.052e-05/0.1412, allocations: 4 kB / 476.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.462e-05/0.1412, allocations: 24 kB / 476.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/0.1413, allocations: 61.28 kB / 476.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.1426, allocations: 0.7779 MB / 477.1 MB, free: 3.402 MB / 350.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.004915/0.1476, allocations: 3.863 MB / 481 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008043/0.1484, allocations: 0.5194 MB / 481.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004458/0.1488, allocations: 240.5 kB / 481.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.1489, allocations: 11.94 kB / 481.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.1489, allocations: 38.55 kB / 481.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.515e-06/0.1489, allocations: 0 / 481.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01138/0.1603, allocations: 3.743 MB / 485.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.1604, allocations: 115.1 kB / 485.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006499/0.1611, allocations: 0.5261 MB / 486.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.1611, allocations: 29.7 kB / 486.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002635/0.1614, allocations: 399 kB / 486.6 MB, free: 9.449 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.1615, allocations: 193.3 kB / 486.8 MB, free: 9.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.1617, allocations: 138.5 kB / 486.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1619, allocations: 370.8 kB / 487.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.1624, allocations: 277.8 kB / 487.6 MB, free: 8.473 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005911/0.163, allocations: 0.5072 MB / 488.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.1641, allocations: 0.8481 MB / 488.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.1642, allocations: 0 / 488.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003379/0.1675, allocations: 1.449 MB / 490.4 MB, free: 5.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.1676, allocations: 10.66 kB / 490.4 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1676, allocations: 11.94 kB / 490.4 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.1692, allocations: 451.2 kB / 490.8 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004466/0.1697, allocations: 115.8 kB / 490.9 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/0.1807, allocations: 9.139 MB / 0.4883 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007577/0.1815, allocations: 35.89 kB / 0.4884 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.543e-05/0.1816, allocations: 35.92 kB / 0.4884 GB, free: 11.04 MB / 382.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.0005644/0.1822, allocations: 313.8 kB / 0.4887 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.1823, allocations: 59.33 kB / 0.4888 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/0.1855, allocations: 1.302 MB / 0.49 GB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.1855, allocations: 8 kB / 0.4901 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1855, allocations: 4 kB / 0.4901 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.1855, allocations: 4.125 kB / 0.4901 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004586/0.1901, allocations: 2.252 MB / 0.4923 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1901, allocations: 0 / 0.4923 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003403/0.1905, allocations: 59.89 kB / 0.4923 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001378/0.1919, allocations: 435.1 kB / 0.4927 GB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/0.1919, allocations: 15.98 kB / 0.4927 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.2021, allocations: 8.867 MB / 0.5014 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2021, allocations: 0 / 0.5014 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003726/0.2059, allocations: 1.85 MB / 0.5032 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.2062, allocations: 196.4 kB / 0.5034 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.2e-05/0.2063, allocations: 16 kB / 0.5034 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004259/0.2067, allocations: 19.98 kB / 0.5034 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.207, allocations: 56.53 kB / 0.5035 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.494e-05/0.207, allocations: 23.92 kB / 0.5035 GB, free: 10.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005169/0.2075, allocations: 374.8 kB / 0.5039 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2075, allocations: 3.938 kB / 0.5039 GB, free: 10.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001241/0.2088, allocations: 256 kB / 0.5041 GB, free: 10.11 MB / 398.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.0003863/0.2092, allocations: 135.2 kB / 0.5042 GB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002462/0.2117, allocations: 1.4 MB / 0.5056 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2117, allocations: 0 / 0.5056 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.2131, allocations: 0.9753 MB / 0.5066 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.2141, allocations: 179.9 kB / 0.5067 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.2172, allocations: 2 MB / 0.5087 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007809/0.218, allocations: 1.048 MB / 0.5097 GB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004171/0.2184, allocations: 109.7 kB / 0.5098 GB, free: 4.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.2185, allocations: 43.42 kB / 0.5099 GB, free: 4.039 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2186, allocations: 4 kB / 0.5099 GB, free: 4.035 MB / 398.1 MB Notification: Performance of Templates: time 0.3047/0.5233, allocations: 14.94 MB / 0.5245 GB, free: 67.74 MB / 398.1 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)