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.0007819/0.0007819, allocations: 100.9 kB / 16.65 MB, free: 6.254 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.0008265/0.0008266, allocations: 180.4 kB / 17.57 MB, free: 5.844 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.486/1.486, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1913/0.1913, allocations: 38.05 MB / 310.1 MB, free: 6 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.0004893/0.0004893, allocations: 16 kB / 377.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2722, allocations: 56.33 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006834/0.2791, allocations: 6.731 MB / 440.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005325/0.2845, allocations: 2.93 MB / 443.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.2858, allocations: 43.75 kB / 443.2 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.287, allocations: 206.8 kB / 443.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001899/0.2889, allocations: 0.5485 MB / 443.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008475/0.2898, allocations: 255.7 kB / 444.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.2917, allocations: 1.62 MB / 445.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001398/0.2932, allocations: 0.8445 MB / 446.7 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008897/0.2941, allocations: 382.3 kB / 447 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008441/0.2949, allocations: 0.5137 MB / 447.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.2951, allocations: 40 kB / 447.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006148/0.2957, allocations: 275.5 kB / 447.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003165/0.296, allocations: 287.2 kB / 448.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005566/0.2966, allocations: 423.6 kB / 448.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.2978, allocations: 1.281 MB / 449.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2978, allocations: 0 / 449.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2978, allocations: 0 / 449.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.188e-05/0.2979, allocations: 0 / 449.8 MB, free: 2.262 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.002119/0.3, allocations: 0.989 MB / 450.8 MB, free: 1.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3001, allocations: 8.031 kB / 450.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006854/0.3008, allocations: 143.8 kB / 451 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009978/0.3018, allocations: 0.6668 MB / 451.6 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.3019, allocations: 83.7 kB / 451.7 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.302, allocations: 71.97 kB / 451.8 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.3036, allocations: 0.957 MB / 452.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.3036, allocations: 4 kB / 452.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.147e-05/0.3037, allocations: 28 kB / 452.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.3038, allocations: 57.22 kB / 452.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.3052, allocations: 0.778 MB / 453.6 MB, free: 14.34 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.005197/0.3104, allocations: 3.883 MB / 457.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008166/0.3113, allocations: 0.5168 MB / 458 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004044/0.3117, allocations: 247 kB / 458.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.3117, allocations: 4 kB / 458.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.3118, allocations: 50.42 kB / 458.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.544e-06/0.3118, allocations: 3.938 kB / 458.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.01074/0.3225, allocations: 3.793 MB / 462.1 MB, free: 5.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.3227, allocations: 115.2 kB / 462.2 MB, free: 5.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007192/0.3234, allocations: 0.5222 MB / 462.7 MB, free: 4.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.3235, allocations: 37.7 kB / 462.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.3238, allocations: 403 kB / 463.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.3239, allocations: 189.2 kB / 463.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.735e-05/0.324, allocations: 65.72 kB / 463.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3242, allocations: 370.8 kB / 463.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004576/0.3247, allocations: 281.8 kB / 464 MB, free: 3.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.3253, allocations: 0.5033 MB / 464.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3264, allocations: 0.8559 MB / 465.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3264, allocations: 4 kB / 465.4 MB, free: 1.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003354/0.3298, allocations: 1.457 MB / 466.9 MB, free: 312 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.3298, allocations: 8 kB / 466.9 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/0.3299, allocations: 8 kB / 466.9 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/0.3314, allocations: 455.3 kB / 467.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004122/0.3319, allocations: 115.8 kB / 467.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.3419, allocations: 8.466 MB / 475.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007993/0.3427, allocations: 31.89 kB / 475.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/0.3428, allocations: 39.94 kB / 476 MB, free: 6.641 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.0006213/0.3434, allocations: 305.5 kB / 476.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.3436, allocations: 63.41 kB / 476.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003155/0.3468, allocations: 1.306 MB / 477.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.3468, allocations: 8.109 kB / 477.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.3468, allocations: 7.938 kB / 477.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.3468, allocations: 7.922 kB / 477.7 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004489/0.3513, allocations: 2.245 MB / 479.9 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3513, allocations: 4 kB / 479.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.3517, allocations: 63.89 kB / 480 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/0.353, allocations: 435.1 kB / 480.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-05/0.3531, allocations: 19.94 kB / 480.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008605/0.3617, allocations: 8.207 MB / 488.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.3617, allocations: 7.969 kB / 488.6 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003541/0.3653, allocations: 1.847 MB / 490.5 MB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.3656, allocations: 192.3 kB / 490.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.669e-05/0.3657, allocations: 12 kB / 490.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.3661, allocations: 19.98 kB / 490.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.3663, allocations: 64.41 kB / 490.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.3664, allocations: 16 kB / 490.8 MB, free: 7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005088/0.3669, allocations: 374.9 kB / 491.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3669, allocations: 0 / 491.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001023/0.3679, allocations: 252 kB / 491.4 MB, free: 6.391 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.0002781/0.3682, allocations: 134.8 kB / 491.5 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.3703, allocations: 1.35 MB / 492.9 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3703, allocations: 0 / 492.9 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.3716, allocations: 0.9667 MB / 493.8 MB, free: 3.836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.3726, allocations: 162.2 kB / 494 MB, free: 3.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.3753, allocations: 2.067 MB / 496.1 MB, free: 1.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006164/0.3759, allocations: 1.056 MB / 497.1 MB, free: 496 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003468/0.3763, allocations: 113.7 kB / 497.2 MB, free: 380 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.3764, allocations: 47.42 kB / 497.3 MB, free: 332 kB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3764, allocations: 0 / 497.3 MB, free: 332 kB / 366.1 MB Notification: Performance of Templates: time 0.02278/0.3992, allocations: 14.2 MB / 0.4995 GB, free: 2.133 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: