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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0009229/0.000923, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001143/0.001143, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.366/0.366, allocations: 38.05 MB / 309.7 MB, free: 8.906 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005922/0.0005923, allocations: 14.19 kB / 376.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1542, allocations: 56.35 MB / 432.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008661/0.163, allocations: 6.09 MB / 438.9 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00683/0.1698, allocations: 2.784 MB / 441.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001576/0.1715, allocations: 43.75 kB / 441.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001425/0.1729, allocations: 226.7 kB / 442 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.1756, allocations: 498.4 kB / 442.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.1769, allocations: 255.5 kB / 442.7 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001967/0.1789, allocations: 0.6593 MB / 443.4 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001885/0.1808, allocations: 0.7716 MB / 444.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.182, allocations: 366.8 kB / 444.5 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007422/0.1827, allocations: 366.7 kB / 444.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.548e-05/0.1828, allocations: 40 kB / 444.9 MB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006354/0.1835, allocations: 259.6 kB / 445.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003371/0.1838, allocations: 263.3 kB / 445.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.1841, allocations: 181.3 kB / 445.6 MB, free: 9.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.1853, allocations: 1.06 MB / 446.6 MB, free: 8.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1853, allocations: 0 / 446.6 MB, free: 8.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1853, allocations: 0 / 446.6 MB, free: 8.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.1853, allocations: 0 / 446.6 MB, free: 8.824 MB / 382.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.00217/0.1875, allocations: 1.001 MB / 447.6 MB, free: 7.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.1876, allocations: 8.031 kB / 447.6 MB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00063/0.1882, allocations: 134.9 kB / 447.8 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.1894, allocations: 0.6544 MB / 448.4 MB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.1896, allocations: 75.7 kB / 448.5 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.1897, allocations: 71.98 kB / 448.6 MB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.1912, allocations: 0.953 MB / 449.5 MB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.1913, allocations: 7.984 kB / 449.5 MB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.1913, allocations: 24 kB / 449.6 MB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-05/0.1914, allocations: 57.3 kB / 449.6 MB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.1927, allocations: 0.7818 MB / 450.4 MB, free: 4.918 MB / 382.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.005141/0.1978, allocations: 3.867 MB / 454.3 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008405/0.1987, allocations: 0.5168 MB / 454.8 MB, free: 280 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.1988, allocations: 12.05 kB / 454.8 MB, free: 268 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.1988, allocations: 38.44 kB / 454.8 MB, free: 220 kB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 2.565e-06/0.1988, allocations: 0 / 454.8 MB, free: 220 kB / 382.1 MB Notification: Performance of matching and sorting (n=55): time 0.2932/0.4921, allocations: 3.958 MB / 458.8 MB, free: 50.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.4922, allocations: 116.6 kB / 458.9 MB, free: 49.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007821/0.493, allocations: 0.5172 MB / 459.4 MB, free: 49.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.493, allocations: 39.33 kB / 459.5 MB, free: 49.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.4933, allocations: 395.3 kB / 459.8 MB, free: 49.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.4935, allocations: 194.1 kB / 460 MB, free: 49.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.4935, allocations: 12.78 kB / 460 MB, free: 49.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4937, allocations: 366.8 kB / 460.4 MB, free: 49.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.4941, allocations: 287.7 kB / 460.7 MB, free: 49.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006212/0.4948, allocations: 0.4956 MB / 461.2 MB, free: 48.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005489/0.4953, allocations: 373.1 kB / 461.5 MB, free: 48.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.4953, allocations: 3.344 kB / 461.6 MB, free: 48.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003044/0.4984, allocations: 1.548 MB / 463.1 MB, free: 48.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.4984, allocations: 8.781 kB / 463.1 MB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.4984, allocations: 6.891 kB / 463.1 MB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.4999, allocations: 484.7 kB / 463.6 MB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.5003, allocations: 110.4 kB / 463.7 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009624/0.51, allocations: 10.05 MB / 473.7 MB, free: 40.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007285/0.5107, allocations: 31.59 kB / 473.8 MB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.5108, allocations: 30.88 kB / 473.8 MB, free: 40.36 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 (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005317/0.5113, allocations: 305.7 kB / 474.1 MB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.5115, allocations: 60.75 kB / 474.2 MB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.5143, allocations: 1.411 MB / 475.6 MB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.5143, allocations: 6.469 kB / 475.6 MB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5143, allocations: 7.156 kB / 475.6 MB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.5143, allocations: 3.422 kB / 475.6 MB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003957/0.5183, allocations: 2.348 MB / 477.9 MB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.5183, allocations: 3.094 kB / 477.9 MB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.5186, allocations: 51.55 kB / 478 MB, free: 38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.5199, allocations: 467.8 kB / 478.4 MB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/0.5199, allocations: 13.53 kB / 478.5 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008154/0.5281, allocations: 9.765 MB / 488.2 MB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5281, allocations: 0 / 488.2 MB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003284/0.5314, allocations: 2.01 MB / 490.2 MB, free: 28.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003861/0.5319, allocations: 200.7 kB / 490.4 MB, free: 28.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.228e-05/0.5319, allocations: 14.12 kB / 490.4 MB, free: 28.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.5323, allocations: 24.69 kB / 490.5 MB, free: 28.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/0.5326, allocations: 59.44 kB / 490.5 MB, free: 28.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.5326, allocations: 15.88 kB / 490.5 MB, free: 28.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004694/0.5331, allocations: 366.7 kB / 490.9 MB, free: 28.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5331, allocations: 0 / 490.9 MB, free: 28.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001333/0.5344, allocations: 252 kB / 491.1 MB, free: 28.2 MB / 382.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 (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003959/0.5348, allocations: 141.9 kB / 491.3 MB, free: 28.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.5369, allocations: 1.453 MB / 492.7 MB, free: 27.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.537, allocations: 5.125 kB / 492.7 MB, free: 27.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.5384, allocations: 1.085 MB / 493.8 MB, free: 26.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008494/0.5392, allocations: 164.1 kB / 494 MB, free: 26.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.5421, allocations: 2.03 MB / 496 MB, free: 25.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.5427, allocations: 1.07 MB / 497.1 MB, free: 24.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.5431, allocations: 111.4 kB / 497.2 MB, free: 24.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.938e-05/0.5431, allocations: 42.67 kB / 497.2 MB, free: 24.36 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5432, allocations: 0 / 497.2 MB, free: 24.36 MB / 382.1 MB Notification: Performance of Templates: time 0.03226/0.5754, allocations: 14.05 MB / 0.4993 GB, free: 22.43 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: