Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001499/0.001499, allocations: 183 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.036/2.036, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 102.8 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2479/0.2479, allocations: 38.07 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004591/0.0004591, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 56.33 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4954/0.6042, allocations: 112.8 MB / 0.578 GB, free: 3.133 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/0.6046, allocations: 101.6 kB / 0.5781 GB, free: 3.078 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1103/0.7149, allocations: 26.03 MB / 0.6035 GB, free: 12.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.715, allocations: 0 / 0.6035 GB, free: 12.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.565e-05/0.7151, allocations: 20 kB / 0.6035 GB, free: 12.82 MB / 410.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.003035/0.7181, allocations: 1.016 MB / 0.6045 GB, free: 11.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.7182, allocations: 12.03 kB / 0.6045 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006706/0.7189, allocations: 110.9 kB / 0.6046 GB, free: 11.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002742/0.7216, allocations: 0.854 MB / 0.6055 GB, free: 10.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.7218, allocations: 85.19 kB / 0.6055 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.722, allocations: 66.47 kB / 0.6056 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.7243, allocations: 0.9666 MB / 0.6066 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.7243, allocations: 0 / 0.6066 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.7244, allocations: 28.56 kB / 0.6066 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.7246, allocations: 49.05 kB / 0.6066 GB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002091/0.7267, allocations: 0.7809 MB / 0.6074 GB, free: 9.559 MB / 410.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.007559/0.7343, allocations: 3.844 MB / 0.6111 GB, free: 6.195 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.7355, allocations: 439.4 kB / 0.6116 GB, free: 5.867 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.268e-05/0.7356, allocations: 4.656 kB / 0.6116 GB, free: 5.863 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.7356, allocations: 37.81 kB / 0.6116 GB, free: 5.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.787e-06/0.7357, allocations: 3.938 kB / 0.6116 GB, free: 5.816 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.01909/0.7547, allocations: 4.05 MB / 0.6156 GB, free: 2.355 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.7549, allocations: 115.2 kB / 0.6157 GB, free: 2.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000833/0.7557, allocations: 457.3 kB / 0.6161 GB, free: 1.867 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.933e-05/0.7558, allocations: 41.39 kB / 0.6161 GB, free: 1.828 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.7561, allocations: 430.2 kB / 0.6166 GB, free: 1.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.7564, allocations: 191.9 kB / 0.6167 GB, free: 1.316 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.212e-05/0.7565, allocations: 15.62 kB / 0.6168 GB, free: 1.312 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.7566, allocations: 342.3 kB / 0.6171 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007741/0.7574, allocations: 282.7 kB / 0.6173 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009536/0.7584, allocations: 0.5062 MB / 0.6178 GB, free: 324 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009127/0.7593, allocations: 370.9 kB / 0.6182 GB, free: 104 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.7593, allocations: 4 kB / 0.6182 GB, free: 100 kB / 410.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005631/0.765, allocations: 1.541 MB / 0.6197 GB, free: 14.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.765, allocations: 8 kB / 0.6197 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.7651, allocations: 8 kB / 0.6197 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002881/0.768, allocations: 491.2 kB / 0.6202 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/0.7688, allocations: 115.3 kB / 0.6203 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0174/0.7862, allocations: 10.1 MB / 0.6302 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009002/0.7872, allocations: 35.83 kB / 0.6302 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.622e-05/0.7873, allocations: 39.98 kB / 0.6302 GB, free: 3.965 MB / 426.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 (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006843/0.788, allocations: 297.6 kB / 0.6305 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.7882, allocations: 67.34 kB / 0.6306 GB, free: 3.598 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005399/0.7936, allocations: 1.433 MB / 0.632 GB, free: 2.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.7936, allocations: 8 kB / 0.632 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.7936, allocations: 4 kB / 0.632 GB, free: 2.078 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.7937, allocations: 7.984 kB / 0.632 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007411/0.8011, allocations: 2.336 MB / 0.6343 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.8011, allocations: 0 / 0.6343 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006299/0.8018, allocations: 64.05 kB / 0.6343 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002684/0.8045, allocations: 479.8 kB / 0.6348 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-05/0.8046, allocations: 15.98 kB / 0.6348 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01663/0.8212, allocations: 9.845 MB / 0.6444 GB, free: 4.512 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.8213, allocations: 0 / 0.6444 GB, free: 4.512 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006457/0.8277, allocations: 2.037 MB / 0.6464 GB, free: 2.344 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000437/0.8282, allocations: 196.2 kB / 0.6466 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.8283, allocations: 11.95 kB / 0.6466 GB, free: 2.121 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000626/0.829, allocations: 24.05 kB / 0.6466 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.8293, allocations: 56.42 kB / 0.6467 GB, free: 2.043 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.939e-05/0.8293, allocations: 19.98 kB / 0.6467 GB, free: 2.023 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006852/0.83, allocations: 350.8 kB / 0.6471 GB, free: 1.684 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.83, allocations: 0 / 0.6471 GB, free: 1.684 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001502/0.8315, allocations: 244 kB / 0.6473 GB, free: 1.445 MB / 442.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 (30): * Single equations (assignments): 24 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 8,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003388/0.8319, allocations: 171 kB / 0.6474 GB, free: 1.266 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003998/0.8359, allocations: 1.481 MB / 0.6489 GB, free: 15.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8359, allocations: 0 / 0.6489 GB, free: 15.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002952/0.8389, allocations: 1.123 MB / 0.65 GB, free: 14.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.8402, allocations: 161.9 kB / 0.6501 GB, free: 14.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/0.8447, allocations: 2.097 MB / 0.6522 GB, free: 12.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009736/0.8457, allocations: 1.064 MB / 0.6532 GB, free: 11.13 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.8459, allocations: 47.36 kB / 0.6533 GB, free: 11.09 MB / 458.7 MB Notification: Performance of SimCode: time 1.002e-06/0.8459, allocations: 0 / 0.6533 GB, free: 11.09 MB / 458.7 MB Notification: Performance of Templates: time 0.04493/0.8909, allocations: 26.11 MB / 0.6788 GB, free: 0.9414 MB / 474.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)