Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008437/0.0008437, allocations: 174.5 kB / 16.08 MB, free: 5.719 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.235/1.235, allocations: 205.4 MB / 222.2 MB, free: 9.004 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.0007525/0.0007528, allocations: 86.36 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1668/0.1668, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003234, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2264, allocations: 56.32 MB / 479.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.005867/0.2323, allocations: 6.428 MB / 486.1 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003935/0.2363, allocations: 2.773 MB / 488.8 MB, free: 2.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000676/0.237, allocations: 49.66 kB / 488.9 MB, free: 2.934 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007397/0.2377, allocations: 223.7 kB / 489.1 MB, free: 2.824 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001467/0.2392, allocations: 0.5769 MB / 489.7 MB, free: 2.527 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008295/0.2401, allocations: 255.7 kB / 489.9 MB, free: 2.406 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001645/0.2417, allocations: 1.332 MB / 491.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.2428, allocations: 0.8288 MB / 492.1 MB, free: 1.441 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000628/0.2434, allocations: 398.5 kB / 492.5 MB, free: 1.285 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006934/0.2442, allocations: 0.5022 MB / 493 MB, free: 1.109 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.139e-05/0.2443, allocations: 39.44 kB / 493 MB, free: 1.109 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005744/0.2448, allocations: 266.6 kB / 493.3 MB, free: 1.047 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.2452, allocations: 286.2 kB / 493.6 MB, free: 0.957 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000396/0.2456, allocations: 406 kB / 494 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.2468, allocations: 1.062 MB / 495 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2469, allocations: 0 / 495 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.2469, allocations: 1.25 kB / 495 MB, free: 0.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.883e-05/0.2469, allocations: 3.938 kB / 495 MB, free: 0.4961 MB / 314.7 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.001905/0.2488, allocations: 0.9895 MB / 496 MB, free: 15.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2488, allocations: 9.625 kB / 496 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006484/0.2495, allocations: 134.1 kB / 496.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.2506, allocations: 0.6709 MB / 496.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.2508, allocations: 79.67 kB / 496.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.2509, allocations: 71.39 kB / 497 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.2525, allocations: 0.9529 MB / 497.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.2525, allocations: 2.5 kB / 497.9 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.2526, allocations: 26.28 kB / 497.9 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.2527, allocations: 58.66 kB / 498 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.2541, allocations: 0.7778 MB / 498.8 MB, free: 14.34 MB / 330.7 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.004882/0.259, allocations: 3.879 MB / 0.4909 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008037/0.2598, allocations: 0.5269 MB / 0.4914 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.2603, allocations: 239.2 kB / 0.4916 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.2603, allocations: 8.188 kB / 0.4916 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.2604, allocations: 48.61 kB / 0.4917 GB, free: 10.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 3.297e-06/0.2604, allocations: 1.031 kB / 0.4917 GB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.01026/0.2706, allocations: 3.783 MB / 0.4954 GB, free: 8.074 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.2707, allocations: 113.5 kB / 0.4955 GB, free: 7.945 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006742/0.2714, allocations: 0.5199 MB / 0.496 GB, free: 7.625 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.2715, allocations: 36.42 kB / 0.496 GB, free: 7.586 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.2717, allocations: 399 kB / 0.4964 GB, free: 7.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.2719, allocations: 185.9 kB / 0.4966 GB, free: 7.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.2719, allocations: 15.34 kB / 0.4966 GB, free: 7.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2721, allocations: 369.3 kB / 0.4969 GB, free: 6.703 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.2726, allocations: 284.8 kB / 0.4972 GB, free: 6.559 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005845/0.2731, allocations: 0.4964 MB / 0.4977 GB, free: 6.117 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.2746, allocations: 0.8591 MB / 0.4985 GB, free: 5.469 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.2747, allocations: 2.75 kB / 0.4985 GB, free: 5.469 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003667/0.2783, allocations: 1.442 MB / 0.5 GB, free: 4.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.2784, allocations: 12.19 kB / 0.5 GB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.2784, allocations: 7.031 kB / 0.5 GB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.2801, allocations: 459.9 kB / 0.5004 GB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005055/0.2807, allocations: 118.7 kB / 0.5005 GB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009818/0.2905, allocations: 8.469 MB / 0.5088 GB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.2912, allocations: 44.02 kB / 0.5088 GB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.2913, allocations: 28 kB / 0.5089 GB, free: 11.47 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004784/0.2917, allocations: 309.5 kB / 0.5092 GB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.2919, allocations: 55.34 kB / 0.5092 GB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.2947, allocations: 1.303 MB / 0.5105 GB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.2947, allocations: 15.94 kB / 0.5105 GB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.2947, allocations: 7.984 kB / 0.5105 GB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.2947, allocations: 0 / 0.5105 GB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.2989, allocations: 2.249 MB / 0.5127 GB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.2989, allocations: 8.078 kB / 0.5127 GB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.2992, allocations: 59.91 kB / 0.5128 GB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.3005, allocations: 435.1 kB / 0.5132 GB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.3006, allocations: 15.98 kB / 0.5132 GB, free: 6.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008722/0.3093, allocations: 8.172 MB / 0.5212 GB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.3093, allocations: 7.969 kB / 0.5212 GB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003556/0.3129, allocations: 1.84 MB / 0.523 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/0.3133, allocations: 204.2 kB / 0.5232 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.3135, allocations: 20.05 kB / 0.5232 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004314/0.3139, allocations: 16 kB / 0.5232 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.3141, allocations: 60.41 kB / 0.5233 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.3142, allocations: 16 kB / 0.5233 GB, free: 11.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005083/0.3147, allocations: 366.8 kB / 0.5236 GB, free: 11.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3147, allocations: 0 / 0.5236 GB, free: 11.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001081/0.3158, allocations: 252 kB / 0.5239 GB, free: 11.26 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002843/0.3161, allocations: 135.2 kB / 0.524 GB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.3182, allocations: 1.341 MB / 0.5253 GB, free: 9.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3182, allocations: 0 / 0.5253 GB, free: 9.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.3195, allocations: 0.9677 MB / 0.5263 GB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.3206, allocations: 179.2 kB / 0.5264 GB, free: 8.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.3235, allocations: 2.083 MB / 0.5285 GB, free: 6.402 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000659/0.3242, allocations: 1.052 MB / 0.5295 GB, free: 5.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3244, allocations: 47.42 kB / 0.5295 GB, free: 5.277 MB / 362.7 MB Notification: Performance of SimCode: time 5e-07/0.3244, allocations: 0 / 0.5295 GB, free: 5.277 MB / 362.7 MB Notification: Performance of Templates: time 0.02694/0.3513, allocations: 24.52 MB / 0.5535 GB, free: 12.71 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)