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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001228/0.001228, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.247/1.247, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001706/0.001706, allocations: 129.2 kB / 256.6 MB, free: 4.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1641/0.1641, allocations: 37.95 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 67.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.09218, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007171/0.0994, allocations: 8.089 MB / 462.1 MB, free: 8.441 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003969/0.1034, allocations: 3.245 MB / 465.3 MB, free: 5.184 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000656/0.1041, allocations: 47.69 kB / 465.4 MB, free: 5.137 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009404/0.105, allocations: 334.5 kB / 465.7 MB, free: 4.809 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.1064, allocations: 0.716 MB / 466.4 MB, free: 4.09 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000511/0.1069, allocations: 271.7 kB / 466.7 MB, free: 3.824 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.1083, allocations: 2.131 MB / 468.8 MB, free: 1.688 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009861/0.1093, allocations: 1.126 MB / 469.9 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005361/0.1098, allocations: 0.5526 MB / 470.5 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000923/0.1108, allocations: 0.7553 MB / 471.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.1109, allocations: 76 kB / 471.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.1119, allocations: 0.6434 MB / 472 MB, free: 14.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004139/0.1124, allocations: 454.8 kB / 472.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000573/0.1129, allocations: 0.5872 MB / 473 MB, free: 13.47 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.1147, allocations: 2.022 MB / 475 MB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1147, allocations: 0 / 475 MB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1147, allocations: 0 / 475 MB, free: 11.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.437e-05/0.1148, allocations: 0 / 475 MB, free: 11.44 MB / 330.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.003187/0.118, allocations: 1.555 MB / 476.6 MB, free: 9.836 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.118, allocations: 8.031 kB / 476.6 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006002/0.1186, allocations: 167.5 kB / 476.7 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.1201, allocations: 0.8188 MB / 477.6 MB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002003/0.1203, allocations: 196.8 kB / 477.8 MB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.1205, allocations: 111.8 kB / 477.9 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002009/0.1225, allocations: 1.461 MB / 479.3 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.169e-05/0.1225, allocations: 3.938 kB / 479.3 MB, free: 6.945 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.233e-05/0.1226, allocations: 44 kB / 479.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.1227, allocations: 77.97 kB / 479.5 MB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.1246, allocations: 1.261 MB / 480.7 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006591/0.1312, allocations: 5.235 MB / 485.9 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.1328, allocations: 1.024 MB / 487 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007414/0.1335, allocations: 0.4931 MB / 487.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.345e-05/0.1336, allocations: 16.55 kB / 487.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.1337, allocations: 43.06 kB / 487.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 2.786e-06/0.1337, allocations: 0 / 487.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=79): time 0.005746/0.1394, allocations: 3.363 MB / 490.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.1395, allocations: 111.4 kB / 491 MB, free: 10.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008089/0.1403, allocations: 0.6836 MB / 491.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.1404, allocations: 41.7 kB / 491.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.1407, allocations: 479.2 kB / 492.2 MB, free: 9.688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/0.1409, allocations: 268.1 kB / 492.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000268/0.1412, allocations: 190.5 kB / 492.6 MB, free: 9.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1414, allocations: 390.7 kB / 493 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006619/0.1421, allocations: 446.1 kB / 493.5 MB, free: 8.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008327/0.1429, allocations: 0.7261 MB / 494.2 MB, free: 7.555 MB / 346.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: loadInertia.w = loadInertia.w_start (bldcm.rotor.w_start = loadInertia.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005307/0.1482, allocations: 2.591 MB / 496.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.1483, allocations: 0 / 496.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002119/0.1504, allocations: 1.316 MB / 498.1 MB, free: 3.496 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.1504, allocations: 11.94 kB / 498.1 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.1504, allocations: 12 kB / 498.1 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.1507, allocations: 81.67 kB / 498.2 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000826/0.1515, allocations: 231.9 kB / 498.4 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009685/0.1525, allocations: 1.339 MB / 499.8 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007045/0.1532, allocations: 83.89 kB / 499.8 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.1533, allocations: 39.94 kB / 499.9 MB, free: 1.562 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: loadInertia.w = loadInertia.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 (116): * Single equations (assignments): 113 * 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.0005978/0.1539, allocations: 425.3 kB / 0.4886 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002215/0.1542, allocations: 79.06 kB / 0.4886 GB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.156, allocations: 0.9862 MB / 0.4896 GB, free: 60 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-05/0.156, allocations: 16 kB / 0.4896 GB, free: 44 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.156, allocations: 4 kB / 0.4896 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.156, allocations: 7.922 kB / 0.4896 GB, free: 32 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.16, allocations: 2.277 MB / 0.4919 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.16, allocations: 8 kB / 0.4919 GB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007126/0.1607, allocations: 147.8 kB / 0.492 GB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.1608, allocations: 20.86 kB / 0.492 GB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.166e-05/0.1609, allocations: 15.98 kB / 0.492 GB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000968/0.1619, allocations: 1.288 MB / 0.4933 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1619, allocations: 0 / 0.4933 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01622/0.1781, allocations: 10.24 MB / 0.5033 GB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004557/0.1786, allocations: 248 kB / 0.5035 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.1788, allocations: 20.14 kB / 0.5035 GB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005126/0.1793, allocations: 47.95 kB / 0.5036 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.1795, allocations: 56.47 kB / 0.5036 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.1796, allocations: 20 kB / 0.5037 GB, free: 1.117 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006342/0.1802, allocations: 490.9 kB / 0.5041 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1802, allocations: 0 / 0.5041 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001182/0.1814, allocations: 348 kB / 0.5045 GB, free: 308 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.phi_el,bldcm.motor.w_el,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3]) * 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 (71): * Single equations (assignments): 68 * 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.000356/0.1818, allocations: 170.3 kB / 0.5046 GB, free: 132 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.1579/0.3396, allocations: 1.235 MB / 0.5058 GB, free: 66.13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3397, allocations: 0 / 0.5058 GB, free: 66.13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3407, allocations: 0.6054 MB / 0.5064 GB, free: 66.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.3421, allocations: 217.1 kB / 0.5066 GB, free: 66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005798/0.3479, allocations: 3.57 MB / 0.5101 GB, free: 64.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008194/0.3488, allocations: 1.183 MB / 0.5113 GB, free: 63.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001079/0.3499, allocations: 272 kB / 0.5115 GB, free: 63.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.3502, allocations: 76.66 kB / 0.5116 GB, free: 63.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.143e-06/0.3502, allocations: 4 kB / 0.5116 GB, free: 63.29 MB / 362.7 MB Notification: Performance of Templates: time 0.02258/0.3728, allocations: 14.2 MB / 0.5255 GB, free: 57.52 MB / 362.7 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)