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.001496/0.001496, allocations: 184.7 kB / 13.19 MB, free: 2.125 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 1.964/1.964, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001078/0.001078, allocations: 82.31 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2711/0.2711, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.189e-05/3.199e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.09924, allocations: 56.31 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4909/0.5902, allocations: 112.7 MB / 0.5721 GB, free: 6.98 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/0.5906, allocations: 91.89 kB / 0.5722 GB, free: 6.891 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1141/0.7047, allocations: 26.02 MB / 0.5976 GB, free: 12.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.7047, allocations: 0 / 0.5976 GB, free: 12.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.717e-05/0.7048, allocations: 20 kB / 0.5976 GB, free: 12.52 MB / 442.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.002781/0.7076, allocations: 0.9546 MB / 0.5986 GB, free: 11.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.7077, allocations: 8.031 kB / 0.5986 GB, free: 11.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007381/0.7084, allocations: 103 kB / 0.5987 GB, free: 11.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.7115, allocations: 0.844 MB / 0.5995 GB, free: 10.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.7117, allocations: 79.7 kB / 0.5996 GB, free: 10.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002068/0.7119, allocations: 68 kB / 0.5996 GB, free: 10.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.7143, allocations: 0.9486 MB / 0.6006 GB, free: 9.371 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.978e-05/0.7144, allocations: 0 / 0.6006 GB, free: 9.371 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.7145, allocations: 35.92 kB / 0.6006 GB, free: 9.336 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/0.7147, allocations: 53.23 kB / 0.6007 GB, free: 9.285 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002168/0.7169, allocations: 0.743 MB / 0.6014 GB, free: 8.543 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008685/0.7256, allocations: 3.851 MB / 0.6051 GB, free: 4.477 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.7268, allocations: 420.1 kB / 0.6055 GB, free: 4.039 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007366/0.7275, allocations: 264.4 kB / 0.6058 GB, free: 3.773 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.678e-05/0.7276, allocations: 7.859 kB / 0.6058 GB, free: 3.766 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.7277, allocations: 50.48 kB / 0.6058 GB, free: 3.707 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 3.406e-06/0.7277, allocations: 0 / 0.6058 GB, free: 3.707 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01746/0.7451, allocations: 3.58 MB / 0.6093 GB, free: 15.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/0.7453, allocations: 115.2 kB / 0.6095 GB, free: 15.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009066/0.7462, allocations: 452.5 kB / 0.6099 GB, free: 15.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.7463, allocations: 33.7 kB / 0.6099 GB, free: 15.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003752/0.7467, allocations: 441.5 kB / 0.6103 GB, free: 14.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.747, allocations: 189.2 kB / 0.6105 GB, free: 14.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.798e-05/0.7471, allocations: 16 kB / 0.6105 GB, free: 14.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.7472, allocations: 334.8 kB / 0.6109 GB, free: 14.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007618/0.748, allocations: 273.5 kB / 0.6111 GB, free: 14.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009281/0.749, allocations: 0.4934 MB / 0.6116 GB, free: 13.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009006/0.7499, allocations: 361.5 kB / 0.6119 GB, free: 13.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.86e-06/0.7499, allocations: 0 / 0.6119 GB, free: 13.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005707/0.7556, allocations: 1.534 MB / 0.6134 GB, free: 11.53 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.7557, allocations: 11.94 kB / 0.6134 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.7557, allocations: 8 kB / 0.6135 GB, free: 11.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003013/0.7588, allocations: 499.9 kB / 0.6139 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008168/0.7596, allocations: 111.8 kB / 0.614 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01769/0.7773, allocations: 9.953 MB / 0.6238 GB, free: 264 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009452/0.7783, allocations: 43.95 kB / 0.6238 GB, free: 220 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-05/0.7784, allocations: 31.98 kB / 0.6238 GB, free: 188 kB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 54 * 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%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002506/0.7787, allocations: 148.7 kB / 0.624 GB, free: 32 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.7789, allocations: 63.3 kB / 0.624 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005408/0.7843, allocations: 1.421 MB / 0.6254 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.7844, allocations: 7.938 kB / 0.6254 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.7844, allocations: 4 kB / 0.6254 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-05/0.7844, allocations: 8.094 kB / 0.6254 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007566/0.792, allocations: 2.351 MB / 0.6277 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/0.792, allocations: 3.984 kB / 0.6277 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.7927, allocations: 55.91 kB / 0.6278 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002768/0.7954, allocations: 480 kB / 0.6283 GB, free: 11.42 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.7956, allocations: 15.98 kB / 0.6283 GB, free: 11.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01708/0.8127, allocations: 9.702 MB / 0.6377 GB, free: 1.027 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.8128, allocations: 7.938 kB / 0.6377 GB, free: 1.02 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3137/1.126, allocations: 2.013 MB / 0.6397 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000479/1.127, allocations: 188.5 kB / 0.6399 GB, free: 133.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/1.127, allocations: 13.17 kB / 0.6399 GB, free: 133.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006737/1.128, allocations: 23.3 kB / 0.6399 GB, free: 133.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/1.128, allocations: 56.69 kB / 0.64 GB, free: 133.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.526e-05/1.128, allocations: 20.89 kB / 0.64 GB, free: 133.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006793/1.129, allocations: 349.2 kB / 0.6403 GB, free: 133.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.129, allocations: 0 / 0.6403 GB, free: 133.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001454/1.13, allocations: 237.6 kB / 0.6406 GB, free: 133.5 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * 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%) 2,(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.0003442/1.131, allocations: 164.4 kB / 0.6407 GB, free: 133.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003659/1.134, allocations: 1.448 MB / 0.6421 GB, free: 132.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/1.134, allocations: 0 / 0.6421 GB, free: 132.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002763/1.137, allocations: 1.097 MB / 0.6432 GB, free: 132.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/1.139, allocations: 162.5 kB / 0.6434 GB, free: 132.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003404/1.142, allocations: 1.356 MB / 0.6447 GB, free: 131.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000881/1.143, allocations: 1.07 MB / 0.6457 GB, free: 131.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/1.143, allocations: 43.91 kB / 0.6458 GB, free: 131.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/1.143, allocations: 0 / 0.6458 GB, free: 131.2 MB / 474.7 MB Notification: Performance of Templates: time 0.04507/1.188, allocations: 26.08 MB / 0.6712 GB, free: 128.6 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)