Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001039/0.001039, allocations: 180.2 kB / 16.38 MB, free: 5.762 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.225/1.225, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001533/0.001533, allocations: 110 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1545/0.1545, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003172, allocations: 8 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07968/0.08001, allocations: 53.24 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2885/0.3686, allocations: 107.6 MB / 0.5514 GB, free: 3.902 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.3689, allocations: 104 kB / 0.5515 GB, free: 3.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06775/0.4366, allocations: 25.95 MB / 0.5768 GB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4367, allocations: 7.938 kB / 0.5769 GB, free: 13.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.14e-05/0.4367, allocations: 19.98 kB / 0.5769 GB, free: 13.66 MB / 394.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.001933/0.4386, allocations: 1.02 MB / 0.5779 GB, free: 12.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.4387, allocations: 12.02 kB / 0.5779 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003884/0.4391, allocations: 106.9 kB / 0.578 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.4407, allocations: 0.8646 MB / 0.5788 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.4408, allocations: 82.23 kB / 0.5789 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.441, allocations: 65.3 kB / 0.579 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.4423, allocations: 0.9669 MB / 0.5799 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.4423, allocations: 7.906 kB / 0.5799 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-05/0.4424, allocations: 23 kB / 0.5799 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.385e-05/0.4425, allocations: 57.72 kB / 0.58 GB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.4437, allocations: 0.7721 MB / 0.5807 GB, free: 10.39 MB / 394.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.00446/0.4482, allocations: 3.853 MB / 0.5845 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/0.4489, allocations: 436.7 kB / 0.5849 GB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.4489, allocations: 4.062 kB / 0.5849 GB, free: 6.688 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.449, allocations: 38.36 kB / 0.585 GB, free: 6.645 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/0.449, allocations: 4 kB / 0.585 GB, free: 6.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=55): time 0.01138/0.4603, allocations: 4.1 MB / 0.589 GB, free: 3.129 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.4604, allocations: 107.2 kB / 0.5891 GB, free: 3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005214/0.461, allocations: 450.8 kB / 0.5895 GB, free: 2.652 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.461, allocations: 39.45 kB / 0.5895 GB, free: 2.617 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.4612, allocations: 398.4 kB / 0.5899 GB, free: 2.312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.4614, allocations: 193.1 kB / 0.5901 GB, free: 2.148 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/0.4614, allocations: 12.94 kB / 0.5901 GB, free: 2.145 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.4616, allocations: 376.8 kB / 0.5905 GB, free: 1.793 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.462, allocations: 288.2 kB / 0.5908 GB, free: 1.613 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005459/0.4626, allocations: 0.5001 MB / 0.5912 GB, free: 1.129 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000523/0.4631, allocations: 372.7 kB / 0.5916 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4631, allocations: 0 / 0.5916 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003354/0.4665, allocations: 1.58 MB / 0.5931 GB, free: 15.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4665, allocations: 8 kB / 0.5932 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.4666, allocations: 8 kB / 0.5932 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/0.4682, allocations: 486 kB / 0.5936 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.4687, allocations: 114.9 kB / 0.5937 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.4795, allocations: 10.11 MB / 0.6036 GB, free: 4.457 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000641/0.4802, allocations: 35.89 kB / 0.6036 GB, free: 4.422 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.364e-05/0.4803, allocations: 28 kB / 0.6037 GB, free: 4.395 MB / 410.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.0006578/0.4809, allocations: 309.6 kB / 0.604 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.4811, allocations: 67.14 kB / 0.604 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003364/0.4845, allocations: 1.426 MB / 0.6054 GB, free: 2.512 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.4845, allocations: 15.92 kB / 0.6054 GB, free: 2.496 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.4845, allocations: 4 kB / 0.6054 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4845, allocations: 4 kB / 0.6054 GB, free: 2.488 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/0.4895, allocations: 2.351 MB / 0.6077 GB, free: 0 / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4895, allocations: 0 / 0.6077 GB, free: 0 / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/0.4899, allocations: 63.86 kB / 0.6078 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001609/0.4915, allocations: 480.2 kB / 0.6083 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.4916, allocations: 16 kB / 0.6083 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/0.5023, allocations: 9.854 MB / 0.6179 GB, free: 4.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.5023, allocations: 7.953 kB / 0.6179 GB, free: 4.902 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00394/0.5063, allocations: 2.003 MB / 0.6199 GB, free: 2.777 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.5067, allocations: 188.3 kB / 0.62 GB, free: 2.574 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.5068, allocations: 16 kB / 0.6201 GB, free: 2.559 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/0.5072, allocations: 27.98 kB / 0.6201 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.5074, allocations: 56.47 kB / 0.6201 GB, free: 2.477 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.5075, allocations: 16 kB / 0.6201 GB, free: 2.461 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000513/0.508, allocations: 354.8 kB / 0.6205 GB, free: 2.117 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.508, allocations: 0 / 0.6205 GB, free: 2.117 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001146/0.5092, allocations: 244 kB / 0.6207 GB, free: 1.879 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_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,100.0%) 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.0002702/0.5094, allocations: 151.3 kB / 0.6209 GB, free: 1.719 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.512, allocations: 1.477 MB / 0.6223 GB, free: 180 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.512, allocations: 0 / 0.6223 GB, free: 180 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.5138, allocations: 1.123 MB / 0.6234 GB, free: 14.99 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007813/0.5146, allocations: 154.8 kB / 0.6235 GB, free: 14.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.5177, allocations: 2.026 MB / 0.6255 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007641/0.5185, allocations: 1.072 MB / 0.6266 GB, free: 11.67 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004128/0.5189, allocations: 101.7 kB / 0.6267 GB, free: 11.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.328e-05/0.519, allocations: 39.44 kB / 0.6267 GB, free: 11.53 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/0.519, allocations: 0 / 0.6267 GB, free: 11.53 MB / 442.7 MB Notification: Performance of Templates: time 0.02201/0.541, allocations: 13.78 MB / 0.6402 GB, free: 13.74 MB / 458.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)