Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001854, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.002345/0.002345, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.726/2.726, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4234/0.4234, allocations: 38.02 MB / 330 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00284/0.00284, allocations: 65.92 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.227, allocations: 58.06 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01999/0.2471, allocations: 8.11 MB / 465.1 MB, free: 276 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.259, allocations: 3.179 MB / 468.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002044/0.2611, allocations: 47.69 kB / 468.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00249/0.2637, allocations: 346.5 kB / 468.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004231/0.2679, allocations: 0.7122 MB / 469.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.2695, allocations: 267.7 kB / 469.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004417/0.2739, allocations: 1.581 MB / 471.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003271/0.2773, allocations: 1.445 MB / 472.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002255/0.2796, allocations: 0.6463 MB / 473.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002324/0.282, allocations: 0.7866 MB / 474.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000408/0.2824, allocations: 140 kB / 474.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002441/0.2849, allocations: 0.7099 MB / 475 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.286, allocations: 0.5027 MB / 475.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.2877, allocations: 0.6613 MB / 476.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003962/0.2917, allocations: 1.7 MB / 477.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.2917, allocations: 0 / 477.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.2918, allocations: 0 / 477.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.281e-05/0.2918, allocations: 0 / 477.8 MB, free: 3.512 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006537/0.2984, allocations: 1.547 MB / 479.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.362e-05/0.2985, allocations: 15.89 kB / 479.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/0.2998, allocations: 171.3 kB / 479.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002435/0.3023, allocations: 0.8074 MB / 480.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.3026, allocations: 200.7 kB / 480.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003039/0.303, allocations: 104 kB / 480.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004296/0.3073, allocations: 1.469 MB / 482.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.38e-05/0.3074, allocations: 7.906 kB / 482.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001996/0.3076, allocations: 36 kB / 482.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002311/0.3079, allocations: 93.89 kB / 482.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003873/0.3117, allocations: 1.257 MB / 483.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01566/0.3275, allocations: 5.235 MB / 488.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00344/0.331, allocations: 1.018 MB / 489.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.3325, allocations: 0.4933 MB / 490.3 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.3326, allocations: 12.56 kB / 490.3 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.3327, allocations: 39.12 kB / 490.3 MB, free: 6.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 5.51e-06/0.3327, allocations: 3.938 kB / 490.3 MB, free: 6.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.01331/0.3461, allocations: 3.063 MB / 493.4 MB, free: 3.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.3463, allocations: 115.5 kB / 493.5 MB, free: 3.293 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.3483, allocations: 0.6836 MB / 494.2 MB, free: 2.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.3486, allocations: 41.7 kB / 494.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000585/0.3492, allocations: 482.7 kB / 494.7 MB, free: 2.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005312/0.3497, allocations: 260.2 kB / 494.9 MB, free: 1.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007142/0.3505, allocations: 198.4 kB / 495.1 MB, free: 1.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003335/0.3508, allocations: 390.7 kB / 495.5 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.3522, allocations: 449.7 kB / 496 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001897/0.3541, allocations: 0.7169 MB / 496.7 MB, free: 15.94 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.01065/0.3648, allocations: 2.583 MB / 499.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/0.3649, allocations: 4 kB / 499.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004665/0.3696, allocations: 1.305 MB / 0.4888 GB, free: 11.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/0.3697, allocations: 8 kB / 0.4888 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.204e-05/0.3698, allocations: 15.94 kB / 0.4889 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005177/0.3703, allocations: 81.66 kB / 0.4889 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/0.372, allocations: 227.9 kB / 0.4891 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/0.3741, allocations: 1.446 MB / 0.4906 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.3758, allocations: 75.83 kB / 0.4906 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/0.3761, allocations: 43.94 kB / 0.4907 GB, free: 9.859 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001534/0.3776, allocations: 429.2 kB / 0.4911 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006346/0.3783, allocations: 75.06 kB / 0.4912 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003888/0.3822, allocations: 0.9823 MB / 0.4921 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.631e-05/0.3823, allocations: 16 kB / 0.4921 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.428e-05/0.3824, allocations: 3.938 kB / 0.4921 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-05/0.3824, allocations: 7.984 kB / 0.4921 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007888/0.3903, allocations: 2.277 MB / 0.4944 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.3904, allocations: 0 / 0.4944 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.3918, allocations: 143.8 kB / 0.4945 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000229/0.392, allocations: 24.84 kB / 0.4945 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.3922, allocations: 24.03 kB / 0.4945 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.3941, allocations: 1.375 MB / 0.4959 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.3941, allocations: 4.031 kB / 0.4959 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004892/0.399, allocations: 1.646 MB / 0.4975 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.4002, allocations: 248 kB / 0.4977 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000449/0.4007, allocations: 15.98 kB / 0.4978 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.4019, allocations: 51.94 kB / 0.4978 GB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.4023, allocations: 60.48 kB / 0.4979 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.775e-05/0.4024, allocations: 19.94 kB / 0.4979 GB, free: 2.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001439/0.4038, allocations: 487 kB / 0.4983 GB, free: 1.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4039, allocations: 0 / 0.4983 GB, free: 1.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002306/0.4062, allocations: 263.9 kB / 0.4986 GB, free: 1.465 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000787/0.407, allocations: 157.8 kB / 0.4987 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006195/0.4132, allocations: 1.539 MB / 0.5002 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.859e-05/0.4134, allocations: 4.062 kB / 0.5003 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/0.4158, allocations: 0.6149 MB / 0.5009 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/0.4192, allocations: 221 kB / 0.5011 GB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.431, allocations: 3.012 MB / 0.504 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002041/0.4332, allocations: 1.161 MB / 0.5051 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009938/0.4342, allocations: 79.42 kB / 0.5052 GB, free: 10.57 MB / 398.1 MB Notification: Performance of SimCode: time 2.615e-06/0.4343, allocations: 0 / 0.5052 GB, free: 10.57 MB / 398.1 MB Notification: Performance of Templates: time 0.4426/0.8769, allocations: 20.81 MB / 0.5255 GB, free: 68.43 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)