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.0009769/0.000977, allocations: 175.4 kB / 15.78 MB, free: 6.348 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.601/1.601, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008714/0.0008715, allocations: 106.2 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1888/0.1888, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003581, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.09948, allocations: 56.34 MB / 479.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007364/0.1069, allocations: 6.379 MB / 485.4 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005145/0.1121, allocations: 2.791 MB / 488.2 MB, free: 8.816 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009118/0.113, allocations: 39.75 kB / 488.3 MB, free: 8.777 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1141, allocations: 218.5 kB / 488.5 MB, free: 8.562 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.1161, allocations: 0.5716 MB / 489.1 MB, free: 7.988 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009583/0.1171, allocations: 259.6 kB / 489.3 MB, free: 7.734 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001935/0.119, allocations: 1.336 MB / 490.6 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.1205, allocations: 0.7833 MB / 491.4 MB, free: 5.578 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008056/0.1213, allocations: 394.4 kB / 491.8 MB, free: 5.191 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009838/0.1223, allocations: 0.4905 MB / 492.3 MB, free: 4.699 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002189/0.1225, allocations: 40 kB / 492.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007201/0.1232, allocations: 263.5 kB / 492.6 MB, free: 4.402 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000399/0.1236, allocations: 291.2 kB / 492.9 MB, free: 4.117 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.124, allocations: 185.3 kB / 493.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.1252, allocations: 1.06 MB / 494.1 MB, free: 2.867 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1252, allocations: 4 kB / 494.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1252, allocations: 0 / 494.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.643e-05/0.1253, allocations: 0 / 494.1 MB, free: 2.863 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002313/0.1276, allocations: 0.9927 MB / 495.1 MB, free: 1.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1276, allocations: 11.97 kB / 495.1 MB, free: 1.809 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007286/0.1284, allocations: 142.8 kB / 495.3 MB, free: 1.668 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.1296, allocations: 0.6467 MB / 495.9 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.1298, allocations: 79.7 kB / 496 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.13, allocations: 67.98 kB / 496.1 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.132, allocations: 0.953 MB / 497 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.664e-05/0.132, allocations: 7.844 kB / 497 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.094e-05/0.1321, allocations: 35.97 kB / 497.1 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001125/0.1322, allocations: 53.25 kB / 497.1 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.1338, allocations: 0.7857 MB / 497.9 MB, free: 14.95 MB / 346.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.00506/0.1389, allocations: 3.864 MB / 0.49 GB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007661/0.1397, allocations: 0.5323 MB / 0.4905 GB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003929/0.1401, allocations: 239 kB / 0.4908 GB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.1401, allocations: 11.84 kB / 0.4908 GB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.1402, allocations: 38.56 kB / 0.4908 GB, free: 9.984 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 2.274e-06/0.1402, allocations: 4 kB / 0.4908 GB, free: 9.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.01049/0.1507, allocations: 3.778 MB / 0.4945 GB, free: 6.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.1508, allocations: 107.2 kB / 0.4946 GB, free: 5.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006257/0.1514, allocations: 0.526 MB / 0.4951 GB, free: 5.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.1515, allocations: 37.7 kB / 0.4951 GB, free: 5.336 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.1517, allocations: 395.1 kB / 0.4955 GB, free: 4.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.1519, allocations: 197.1 kB / 0.4957 GB, free: 4.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.1519, allocations: 16 kB / 0.4957 GB, free: 4.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1521, allocations: 370.7 kB / 0.4961 GB, free: 4.359 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/0.1526, allocations: 277.8 kB / 0.4963 GB, free: 4.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.1531, allocations: 0.5072 MB / 0.4968 GB, free: 3.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005506/0.1537, allocations: 376.5 kB / 0.4972 GB, free: 3.109 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1537, allocations: 4 kB / 0.4972 GB, free: 3.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00309/0.1568, allocations: 1.438 MB / 0.4986 GB, free: 1.613 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.1569, allocations: 8 kB / 0.4986 GB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.1569, allocations: 8 kB / 0.4986 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/0.1584, allocations: 463.3 kB / 0.4991 GB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.1588, allocations: 115.8 kB / 0.4992 GB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009708/0.1686, allocations: 8.455 MB / 0.5074 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006168/0.1692, allocations: 32.11 kB / 0.5075 GB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.869e-05/0.1693, allocations: 35.98 kB / 0.5075 GB, free: 7.945 MB / 362.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.0005398/0.1699, allocations: 305.6 kB / 0.5078 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.17, allocations: 63.34 kB / 0.5078 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/0.1731, allocations: 1.314 MB / 0.5091 GB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.1731, allocations: 8 kB / 0.5091 GB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1731, allocations: 4 kB / 0.5091 GB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1731, allocations: 3.984 kB / 0.5091 GB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/0.1774, allocations: 2.249 MB / 0.5113 GB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1774, allocations: 0 / 0.5113 GB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/0.1777, allocations: 63.98 kB / 0.5114 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.1791, allocations: 454.6 kB / 0.5118 GB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.412e-05/0.1792, allocations: 12 kB / 0.5118 GB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2153/0.3945, allocations: 8.161 MB / 0.5198 GB, free: 47.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3946, allocations: 8.938 kB / 0.5198 GB, free: 47.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003712/0.3983, allocations: 1.845 MB / 0.5216 GB, free: 46.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/0.3987, allocations: 199.5 kB / 0.5218 GB, free: 46.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.565e-05/0.3987, allocations: 11.95 kB / 0.5218 GB, free: 46.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.3992, allocations: 20.7 kB / 0.5218 GB, free: 46.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/0.3994, allocations: 60.52 kB / 0.5219 GB, free: 46.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.221e-05/0.3994, allocations: 21.42 kB / 0.5219 GB, free: 46.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004967/0.3999, allocations: 370.4 kB / 0.5223 GB, free: 46.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3999, allocations: 0 / 0.5223 GB, free: 46.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001035/0.401, allocations: 250.6 kB / 0.5225 GB, free: 46.48 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.0002785/0.4013, allocations: 138 kB / 0.5226 GB, free: 46.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002046/0.4033, allocations: 1.338 MB / 0.524 GB, free: 45.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.4033, allocations: 1.156 kB / 0.524 GB, free: 45.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.4046, allocations: 0.9747 MB / 0.5249 GB, free: 44.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009147/0.4055, allocations: 166 kB / 0.5251 GB, free: 44.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.4083, allocations: 2.076 MB / 0.5271 GB, free: 43.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.409, allocations: 1.045 MB / 0.5281 GB, free: 43.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.4091, allocations: 48.02 kB / 0.5282 GB, free: 43.02 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.4091, allocations: 4 kB / 0.5282 GB, free: 43.02 MB / 362.7 MB Notification: Performance of Templates: time 0.02727/0.4364, allocations: 24.57 MB / 0.5522 GB, free: 26.04 MB / 362.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)