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.000993/0.000993, allocations: 174.1 kB / 16.07 MB, free: 5.723 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.229/1.229, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007448/0.0007448, allocations: 82.38 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1766/0.1766, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.00038, allocations: 16 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.224, allocations: 56.33 MB / 479.6 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006747/0.2308, allocations: 7.291 MB / 486.9 MB, free: 4.312 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004797/0.2356, allocations: 3.029 MB / 490 MB, free: 2.148 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008488/0.2365, allocations: 47.66 kB / 490 MB, free: 2.129 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007333/0.2372, allocations: 221.2 kB / 490.2 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002114/0.2394, allocations: 0.7555 MB / 491 MB, free: 1.66 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009712/0.2404, allocations: 283 kB / 491.2 MB, free: 1.523 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002564/0.2429, allocations: 1.748 MB / 493 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.2447, allocations: 1.251 MB / 494.2 MB, free: 212 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009985/0.2457, allocations: 0.5037 MB / 494.8 MB, free: 16 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.2471, allocations: 0.68 MB / 495.4 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.2472, allocations: 57.5 kB / 495.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001324/0.2486, allocations: 0.6126 MB / 496.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006113/0.2492, allocations: 428.9 kB / 496.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007766/0.25, allocations: 0.5557 MB / 497.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.2522, allocations: 1.648 MB / 498.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2522, allocations: 0 / 498.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2523, allocations: 1.906 kB / 498.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.436e-05/0.2523, allocations: 0 / 498.7 MB, free: 14.42 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.003263/0.2556, allocations: 1.346 MB / 0.4883 GB, free: 13.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.2556, allocations: 9.281 kB / 0.4884 GB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007494/0.2564, allocations: 172.1 kB / 0.4885 GB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.2578, allocations: 0.7993 MB / 0.4893 GB, free: 12.74 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.2581, allocations: 207.4 kB / 0.4895 GB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.2583, allocations: 110.5 kB / 0.4896 GB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002514/0.2608, allocations: 1.462 MB / 0.491 GB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.2608, allocations: 3.188 kB / 0.491 GB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.261, allocations: 45.28 kB / 0.4911 GB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.2611, allocations: 75.31 kB / 0.4912 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.2635, allocations: 1.266 MB / 0.4924 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007572/0.2711, allocations: 5.232 MB / 0.4975 GB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.2727, allocations: 1.034 MB / 0.4985 GB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008455/0.2736, allocations: 0.4997 MB / 0.499 GB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.334e-05/0.2737, allocations: 8 kB / 0.499 GB, free: 5.871 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.2737, allocations: 46.47 kB / 0.499 GB, free: 5.816 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 2.955e-06/0.2737, allocations: 1.312 kB / 0.499 GB, free: 5.816 MB / 330.7 MB Notification: Performance of matching and sorting (n=78): time 0.00635/0.2801, allocations: 3.129 MB / 0.5021 GB, free: 3.301 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.2802, allocations: 111.4 kB / 0.5022 GB, free: 3.168 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008779/0.281, allocations: 0.6758 MB / 0.5029 GB, free: 2.484 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.829e-05/0.2811, allocations: 41.7 kB / 0.5029 GB, free: 2.438 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003016/0.2815, allocations: 478.7 kB / 0.5034 GB, free: 1.961 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.2817, allocations: 276.2 kB / 0.5036 GB, free: 1.688 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.2818, allocations: 20 kB / 0.5036 GB, free: 1.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.2819, allocations: 390.7 kB / 0.504 GB, free: 1.277 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000737/0.2827, allocations: 445.7 kB / 0.5044 GB, free: 0.8438 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008224/0.2835, allocations: 0.7126 MB / 0.5051 GB, free: 8 kB / 330.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.005588/0.2891, allocations: 2.583 MB / 0.5077 GB, free: 13.28 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.2891, allocations: 4 kB / 0.5077 GB, free: 13.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002218/0.2913, allocations: 1.305 MB / 0.5089 GB, free: 11.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.2914, allocations: 8 kB / 0.509 GB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.2914, allocations: 19.95 kB / 0.509 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.2917, allocations: 81.67 kB / 0.509 GB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008601/0.2925, allocations: 227.6 kB / 0.5093 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.2936, allocations: 1.339 MB / 0.5106 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008583/0.2945, allocations: 95.83 kB / 0.5107 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.49e-05/0.2946, allocations: 36 kB / 0.5107 GB, free: 10.02 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 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.0006921/0.2953, allocations: 413.5 kB / 0.5111 GB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.2955, allocations: 90.97 kB / 0.5112 GB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.2972, allocations: 0.9823 MB / 0.5121 GB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.2972, allocations: 19.92 kB / 0.5122 GB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2973, allocations: 4 kB / 0.5122 GB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.2973, allocations: 3.984 kB / 0.5122 GB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003701/0.301, allocations: 2.293 MB / 0.5144 GB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.301, allocations: 3.984 kB / 0.5144 GB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007087/0.3017, allocations: 143.8 kB / 0.5145 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.314e-05/0.3018, allocations: 28.88 kB / 0.5146 GB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-05/0.3019, allocations: 20 kB / 0.5146 GB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008453/0.3028, allocations: 1.28 MB / 0.5158 GB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3028, allocations: 7.969 kB / 0.5158 GB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3051, allocations: 1.653 MB / 0.5175 GB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.3055, allocations: 244 kB / 0.5177 GB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3056, allocations: 23.92 kB / 0.5177 GB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.3061, allocations: 51.95 kB / 0.5178 GB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.3063, allocations: 60.47 kB / 0.5178 GB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.3e-05/0.3063, allocations: 16 kB / 0.5178 GB, free: 2.418 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006201/0.3069, allocations: 483 kB / 0.5183 GB, free: 1.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.433e-06/0.307, allocations: 0 / 0.5183 GB, free: 1.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009929/0.308, allocations: 259.9 kB / 0.5186 GB, free: 1.699 MB / 346.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.000349/0.3083, allocations: 168.8 kB / 0.5187 GB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.3102, allocations: 1.239 MB / 0.5199 GB, free: 268 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3103, allocations: 0 / 0.5199 GB, free: 268 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009411/0.3112, allocations: 0.6114 MB / 0.5205 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.3125, allocations: 218 kB / 0.5207 GB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.3172, allocations: 3.153 MB / 0.5238 GB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/0.318, allocations: 1.157 MB / 0.5249 GB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.3184, allocations: 75.42 kB / 0.525 GB, free: 10.97 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3184, allocations: 0 / 0.525 GB, free: 10.97 MB / 362.7 MB Notification: Performance of Templates: time 0.02517/0.3436, allocations: 20.7 MB / 0.5452 GB, free: 6.25 MB / 378.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)