Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009229/0.0009226, allocations: 176.4 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 221.9 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008389/0.000839, allocations: 94.23 kB / 270.3 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1942/0.1942, allocations: 38.07 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004076/0.0004076, allocations: 11.98 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.0999, allocations: 56.33 MB / 479.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007905/0.1078, allocations: 7.252 MB / 486.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005292/0.1132, allocations: 3.033 MB / 489.3 MB, free: 7.703 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008661/0.1141, allocations: 47.69 kB / 489.4 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007718/0.1149, allocations: 214.5 kB / 489.6 MB, free: 7.445 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002131/0.117, allocations: 0.7545 MB / 490.4 MB, free: 6.688 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008582/0.1179, allocations: 271.6 kB / 490.6 MB, free: 6.422 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002012/0.1199, allocations: 1.753 MB / 492.4 MB, free: 4.664 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.1214, allocations: 1.13 MB / 493.5 MB, free: 3.488 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008005/0.1222, allocations: 0.498 MB / 494 MB, free: 2.988 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008648/0.1231, allocations: 0.6853 MB / 494.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.1233, allocations: 60 kB / 494.7 MB, free: 2.242 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.1243, allocations: 0.6084 MB / 495.4 MB, free: 1.633 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004095/0.1247, allocations: 418.9 kB / 495.8 MB, free: 1.223 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002612/0.125, allocations: 249.1 kB / 496 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001554/0.1265, allocations: 1.66 MB / 497.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1265, allocations: 0 / 497.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1265, allocations: 0 / 497.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.1266, allocations: 4 kB / 497.7 MB, free: 15.3 MB / 346.7 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.003001/0.1296, allocations: 1.348 MB / 499 MB, free: 13.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1296, allocations: 12.03 kB / 499 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006741/0.1303, allocations: 174.4 kB / 499.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.1317, allocations: 0.7947 MB / 500 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.1319, allocations: 200.8 kB / 0.4885 GB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.1321, allocations: 103.9 kB / 0.4886 GB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002411/0.1345, allocations: 1.473 MB / 0.49 GB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.1346, allocations: 8 kB / 0.49 GB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.1347, allocations: 36 kB / 0.49 GB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001351/0.1349, allocations: 89.91 kB / 0.4901 GB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002187/0.137, allocations: 1.261 MB / 0.4914 GB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007183/0.1442, allocations: 5.22 MB / 0.4965 GB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.1458, allocations: 1.044 MB / 0.4975 GB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007515/0.1466, allocations: 0.4925 MB / 0.498 GB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.848e-05/0.1467, allocations: 12.56 kB / 0.498 GB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1467, allocations: 39.06 kB / 0.498 GB, free: 2.559 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 2.926e-06/0.1467, allocations: 4 kB / 0.498 GB, free: 2.555 MB / 346.7 MB Notification: Performance of matching and sorting (n=78): time 0.006045/0.1528, allocations: 3.125 MB / 0.5011 GB, free: 15.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.1529, allocations: 115.4 kB / 0.5012 GB, free: 15.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008208/0.1537, allocations: 0.6758 MB / 0.5018 GB, free: 14.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.455e-05/0.1537, allocations: 37.7 kB / 0.5019 GB, free: 14.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003268/0.1541, allocations: 486.8 kB / 0.5023 GB, free: 14.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.1543, allocations: 272.1 kB / 0.5026 GB, free: 13.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.1544, allocations: 16 kB / 0.5026 GB, free: 13.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1545, allocations: 386.8 kB / 0.503 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006928/0.1552, allocations: 441.8 kB / 0.5034 GB, free: 12.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008666/0.1561, allocations: 0.7126 MB / 0.5041 GB, free: 12.07 MB / 362.7 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.004089/0.1602, allocations: 1.584 MB / 0.5056 GB, free: 10.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.1602, allocations: 4 kB / 0.5056 GB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002204/0.1625, allocations: 1.305 MB / 0.5069 GB, free: 9.148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.1625, allocations: 12 kB / 0.5069 GB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.1625, allocations: 8 kB / 0.5069 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.1628, allocations: 85.66 kB / 0.507 GB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000807/0.1636, allocations: 231.9 kB / 0.5072 GB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.1647, allocations: 1.351 MB / 0.5086 GB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006889/0.1654, allocations: 91.78 kB / 0.5087 GB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.479e-05/0.1654, allocations: 43.94 kB / 0.5087 GB, free: 7.195 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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[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 initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006032/0.1661, allocations: 417.6 kB / 0.5091 GB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.1662, allocations: 83.05 kB / 0.5092 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.1679, allocations: 0.9861 MB / 0.5101 GB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.664e-05/0.1679, allocations: 19.94 kB / 0.5102 GB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1679, allocations: 0 / 0.5102 GB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.168, allocations: 3.984 kB / 0.5102 GB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003719/0.1717, allocations: 2.285 MB / 0.5124 GB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.1717, allocations: 4.031 kB / 0.5124 GB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007005/0.1724, allocations: 151.8 kB / 0.5125 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.735e-05/0.1725, allocations: 24.84 kB / 0.5126 GB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/0.1726, allocations: 12 kB / 0.5126 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009198/0.1735, allocations: 1.284 MB / 0.5138 GB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1736, allocations: 0 / 0.5138 GB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.1759, allocations: 1.665 MB / 0.5155 GB, free: 4 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2053/0.3812, allocations: 240.5 kB / 0.5157 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.3814, allocations: 16.84 kB / 0.5157 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006224/0.382, allocations: 56.27 kB / 0.5158 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.3822, allocations: 57.05 kB / 0.5158 GB, free: 51.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/0.3823, allocations: 21.66 kB / 0.5158 GB, free: 51.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007443/0.383, allocations: 482 kB / 0.5163 GB, free: 51.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.383, allocations: 1 kB / 0.5163 GB, free: 51.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001057/0.3841, allocations: 256.3 kB / 0.5165 GB, free: 51.75 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003447/0.3845, allocations: 149.5 kB / 0.5167 GB, free: 51.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.3866, allocations: 1.246 MB / 0.5179 GB, free: 51.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3866, allocations: 0 / 0.5179 GB, free: 51.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008789/0.3875, allocations: 0.6192 MB / 0.5185 GB, free: 51.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.3887, allocations: 214.9 kB / 0.5187 GB, free: 51.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/0.3936, allocations: 3.157 MB / 0.5218 GB, free: 49.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007103/0.3943, allocations: 1.152 MB / 0.5229 GB, free: 48.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/0.3947, allocations: 74.33 kB / 0.523 GB, free: 48.72 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3947, allocations: 1.156 kB / 0.523 GB, free: 48.72 MB / 362.7 MB Notification: Performance of Templates: time 0.03015/0.4248, allocations: 20.71 MB / 0.5432 GB, free: 36.62 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)