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.001545/0.001549, allocations: 184.3 kB / 15.77 MB, free: 6.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.001/2.001, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001145/0.001145, allocations: 94.86 kB / 270.2 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.2594/0.2594, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004544/0.0004545, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1072, allocations: 56.33 MB / 479 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.01015/0.1174, allocations: 6.101 MB / 485.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006527/0.124, allocations: 2.779 MB / 487.9 MB, free: 9.113 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008132/0.1248, allocations: 39.75 kB / 488 MB, free: 9.074 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009742/0.1258, allocations: 218.8 kB / 488.2 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002008/0.1278, allocations: 0.4945 MB / 488.7 MB, free: 8.363 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.129, allocations: 247.5 kB / 488.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.1307, allocations: 0.667 MB / 489.6 MB, free: 7.453 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.1324, allocations: 0.7793 MB / 490.4 MB, free: 6.641 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008104/0.1332, allocations: 358.7 kB / 490.7 MB, free: 6.289 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007856/0.134, allocations: 374.7 kB / 491.1 MB, free: 5.922 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.1342, allocations: 40 kB / 491.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007231/0.1349, allocations: 251.6 kB / 491.4 MB, free: 5.637 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004382/0.1353, allocations: 271.3 kB / 491.6 MB, free: 5.371 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002874/0.1357, allocations: 181.3 kB / 491.8 MB, free: 5.188 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001832/0.1375, allocations: 1.052 MB / 492.8 MB, free: 4.133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.1376, allocations: 0 / 492.8 MB, free: 4.133 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1376, allocations: 3.938 kB / 492.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.102e-05/0.1376, allocations: 0 / 492.8 MB, free: 4.129 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.003249/0.1409, allocations: 1.004 MB / 493.9 MB, free: 3.074 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.1409, allocations: 8.031 kB / 493.9 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.142, allocations: 142.9 kB / 494 MB, free: 2.926 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.1438, allocations: 0.6466 MB / 494.6 MB, free: 2.234 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.144, allocations: 79.7 kB / 494.7 MB, free: 2.152 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.1442, allocations: 64 kB / 494.8 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/0.1465, allocations: 0.9491 MB / 495.7 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.991e-05/0.1466, allocations: 7.906 kB / 495.7 MB, free: 1.086 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.1467, allocations: 31.98 kB / 495.8 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/0.1469, allocations: 57.23 kB / 495.8 MB, free: 1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.1492, allocations: 0.7779 MB / 496.6 MB, free: 228 kB / 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.007979/0.1572, allocations: 3.871 MB / 0.4888 GB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.1585, allocations: 0.5207 MB / 0.4893 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.879e-05/0.1586, allocations: 4.656 kB / 0.4893 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.1587, allocations: 42.5 kB / 0.4893 GB, free: 11.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 3.707e-06/0.1587, allocations: 0 / 0.4893 GB, free: 11.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.01915/0.1778, allocations: 3.968 MB / 0.4932 GB, free: 7.336 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.183e-05/0.178, allocations: 123.2 kB / 0.4933 GB, free: 7.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.179, allocations: 0.5182 MB / 0.4938 GB, free: 6.668 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.1791, allocations: 37.7 kB / 0.4938 GB, free: 6.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000372/0.1795, allocations: 433.6 kB / 0.4943 GB, free: 6.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.1798, allocations: 193.1 kB / 0.4944 GB, free: 6.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.1798, allocations: 16 kB / 0.4945 GB, free: 5.988 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.18, allocations: 342.8 kB / 0.4948 GB, free: 5.645 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008574/0.1809, allocations: 281.8 kB / 0.495 GB, free: 5.371 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009977/0.1819, allocations: 0.4994 MB / 0.4955 GB, free: 4.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.183, allocations: 372.6 kB / 0.4959 GB, free: 4.402 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.1831, allocations: 4 kB / 0.4959 GB, free: 4.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.006037/0.1891, allocations: 1.506 MB / 0.4974 GB, free: 2.816 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.1892, allocations: 8 kB / 0.4974 GB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.1892, allocations: 8 kB / 0.4974 GB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/0.1921, allocations: 492 kB / 0.4979 GB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008254/0.193, allocations: 107.8 kB / 0.498 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01814/0.2111, allocations: 10.05 MB / 0.5078 GB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009331/0.2121, allocations: 31.98 kB / 0.5078 GB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/0.2122, allocations: 35.95 kB / 0.5078 GB, free: 7.395 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 (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,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000643/0.2129, allocations: 301.6 kB / 0.5081 GB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.2131, allocations: 63.53 kB / 0.5082 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00541/0.2185, allocations: 1.41 MB / 0.5096 GB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/0.2186, allocations: 8 kB / 0.5096 GB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.2186, allocations: 4 kB / 0.5096 GB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.2186, allocations: 0 / 0.5096 GB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007849/0.2265, allocations: 2.348 MB / 0.5119 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.2266, allocations: 4 kB / 0.5119 GB, free: 3.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005935/0.2272, allocations: 55.95 kB / 0.5119 GB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002584/0.2298, allocations: 463.3 kB / 0.5124 GB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.842e-05/0.2299, allocations: 15.98 kB / 0.5124 GB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3086/0.5385, allocations: 9.746 MB / 0.5219 GB, free: 45.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.5386, allocations: 5.25 kB / 0.5219 GB, free: 45.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006277/0.5449, allocations: 1.999 MB / 0.5239 GB, free: 44.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000445/0.5454, allocations: 198.3 kB / 0.524 GB, free: 44.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.5456, allocations: 16.05 kB / 0.5241 GB, free: 44.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006863/0.5462, allocations: 27.94 kB / 0.5241 GB, free: 44.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003288/0.5466, allocations: 59.09 kB / 0.5241 GB, free: 44.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.265e-05/0.5467, allocations: 20.47 kB / 0.5242 GB, free: 44.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006949/0.5474, allocations: 368.9 kB / 0.5245 GB, free: 44.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5474, allocations: 0 / 0.5245 GB, free: 44.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001527/0.5489, allocations: 253.3 kB / 0.5248 GB, free: 44.33 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 (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 {(2,100.0%) 9,(1,100.0%) 1,(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.0003752/0.5493, allocations: 141.1 kB / 0.5249 GB, free: 44.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0034/0.5527, allocations: 1.45 MB / 0.5263 GB, free: 43.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.5528, allocations: 2.344 kB / 0.5263 GB, free: 43.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.5551, allocations: 1.091 MB / 0.5274 GB, free: 42.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.5565, allocations: 154.2 kB / 0.5275 GB, free: 42.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004353/0.5608, allocations: 2.091 MB / 0.5296 GB, free: 41.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009599/0.5618, allocations: 1.065 MB / 0.5306 GB, free: 40.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002999/0.5622, allocations: 47.17 kB / 0.5306 GB, free: 40.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.123e-06/0.5622, allocations: 0 / 0.5306 GB, free: 40.64 MB / 362.7 MB Notification: Performance of Templates: time 0.04125/0.6034, allocations: 26.42 MB / 0.5564 GB, free: 21.25 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)