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.001163/0.001163, allocations: 110 kB / 17.68 MB, free: 5.332 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.001246/0.001247, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.613/1.613, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1903/0.1903, allocations: 37.98 MB / 309.8 MB, free: 5.969 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.001905/0.001906, allocations: 59.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2922, allocations: 55.26 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007513/0.2997, allocations: 6.333 MB / 438.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004931/0.3047, allocations: 2.709 MB / 441.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009075/0.3057, allocations: 27.81 kB / 441.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.3071, allocations: 342 kB / 441.4 MB, free: 10.05 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001762/0.3089, allocations: 0.587 MB / 442 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008507/0.3098, allocations: 279.5 kB / 442.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.3117, allocations: 1.196 MB / 443.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.3128, allocations: 0.8767 MB / 444.4 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000834/0.3137, allocations: 494.3 kB / 444.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009539/0.3146, allocations: 0.5255 MB / 445.4 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002218/0.3149, allocations: 88 kB / 445.5 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006478/0.3155, allocations: 327.5 kB / 445.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003411/0.3159, allocations: 339.2 kB / 446.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005072/0.3164, allocations: 457.9 kB / 446.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.3175, allocations: 1.367 MB / 447.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3175, allocations: 3.938 kB / 447.9 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3175, allocations: 4 kB / 447.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.3176, allocations: 0 / 447.9 MB, free: 3.527 MB / 318.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.001881/0.3195, allocations: 1.141 MB / 449.1 MB, free: 2.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3195, allocations: 11.89 kB / 449.1 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006019/0.3201, allocations: 139.8 kB / 449.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.3212, allocations: 0.6906 MB / 449.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.873e-05/0.3213, allocations: 87.61 kB / 450 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.532e-05/0.3214, allocations: 64 kB / 450.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.3226, allocations: 0.953 MB / 451 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.3226, allocations: 7.906 kB / 451 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.374e-05/0.3227, allocations: 24 kB / 451 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-05/0.3228, allocations: 65.22 kB / 451.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.3241, allocations: 0.778 MB / 451.9 MB, free: 15.43 MB / 334.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.005188/0.3293, allocations: 3.836 MB / 455.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000809/0.3301, allocations: 0.5168 MB / 456.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.3305, allocations: 235.1 kB / 456.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.164e-05/0.3306, allocations: 11.88 kB / 456.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/0.3306, allocations: 42.42 kB / 456.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.465e-06/0.3306, allocations: 0 / 456.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.01065/0.3413, allocations: 3.735 MB / 460.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.3414, allocations: 123.1 kB / 460.4 MB, free: 6.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006778/0.3421, allocations: 0.5221 MB / 460.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.3422, allocations: 33.7 kB / 460.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.3425, allocations: 399.1 kB / 461.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.3426, allocations: 205.2 kB / 461.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.3429, allocations: 126.6 kB / 461.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.343, allocations: 370.8 kB / 462 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/0.3435, allocations: 277.8 kB / 462.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005979/0.3441, allocations: 0.5111 MB / 462.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.3453, allocations: 0.8442 MB / 463.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3453, allocations: 0 / 463.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00338/0.3487, allocations: 1.449 MB / 465.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.3487, allocations: 8 kB / 465.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.3488, allocations: 8 kB / 465.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/0.3504, allocations: 455.2 kB / 465.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.3509, allocations: 123.8 kB / 465.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/0.3624, allocations: 9.125 MB / 474.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009089/0.3634, allocations: 35.89 kB / 474.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.3635, allocations: 28 kB / 474.8 MB, free: 7.113 MB / 350.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.0007841/0.3643, allocations: 321.5 kB / 475.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/0.3645, allocations: 59.25 kB / 475.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.368, allocations: 1.303 MB / 476.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.368, allocations: 4 kB / 476.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.368, allocations: 4 kB / 476.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.3681, allocations: 3.984 kB / 476.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.3734, allocations: 2.241 MB / 478.8 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3734, allocations: 0 / 478.8 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.3738, allocations: 67.98 kB / 478.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.3753, allocations: 435 kB / 479.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-05/0.3754, allocations: 12 kB / 479.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01192/0.3873, allocations: 8.874 MB / 488.2 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3874, allocations: 3.938 kB / 488.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003903/0.3913, allocations: 1.848 MB / 490 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005061/0.3918, allocations: 200.2 kB / 490.2 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.392, allocations: 12 kB / 490.2 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005235/0.3925, allocations: 19.98 kB / 490.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.3928, allocations: 52.48 kB / 490.3 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.087e-05/0.3929, allocations: 23.88 kB / 490.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005898/0.3935, allocations: 374.8 kB / 490.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3935, allocations: 4.062 kB / 490.7 MB, free: 6.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001138/0.3947, allocations: 252 kB / 490.9 MB, free: 6.172 MB / 366.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.0003377/0.395, allocations: 131.2 kB / 491 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002464/0.3975, allocations: 1.349 MB / 492.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3975, allocations: 1.438 kB / 492.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.399, allocations: 0.9666 MB / 493.4 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4002, allocations: 177 kB / 493.5 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.4032, allocations: 1.671 MB / 495.2 MB, free: 1.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.404, allocations: 1.056 MB / 496.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00036/0.4044, allocations: 109.6 kB / 496.4 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.4045, allocations: 47.42 kB / 496.4 MB, free: 0.5 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4045, allocations: 7.938 kB / 496.4 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of Templates: time 0.02672/0.4312, allocations: 14.88 MB / 0.4993 GB, free: 1.617 MB / 382.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)