Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009475/0.0009474, allocations: 174.3 kB / 15.77 MB, free: 6.324 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.578/1.578, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0006876/0.0006877, allocations: 98.06 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1757/0.1757, allocations: 38.06 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004116/0.0004116, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.102, allocations: 56.34 MB / 479.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005635/0.1076, allocations: 5.377 MB / 484.4 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005599/0.1133, allocations: 3.989 MB / 488.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004697/0.1137, allocations: 27.81 kB / 488.5 MB, free: 8.609 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008139/0.1219, allocations: 4.375 MB / 492.8 MB, free: 4.227 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.1231, allocations: 354.2 kB / 493.2 MB, free: 3.879 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007118/0.1238, allocations: 191.7 kB / 493.4 MB, free: 3.691 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002205/0.126, allocations: 1.766 MB / 495.1 MB, free: 1.922 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.1274, allocations: 0.6459 MB / 495.8 MB, free: 1.242 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006292/0.128, allocations: 298.7 kB / 496.1 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007183/0.1287, allocations: 386.6 kB / 496.4 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.1288, allocations: 28 kB / 496.5 MB, free: 0.543 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.1291, allocations: 39.92 kB / 496.5 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.1293, allocations: 219.4 kB / 496.7 MB, free: 296 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.1296, allocations: 137.4 kB / 496.9 MB, free: 152 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007267/0.1303, allocations: 0.6234 MB / 497.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1303, allocations: 0 / 497.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1303, allocations: 0 / 497.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.488e-05/0.1304, allocations: 0 / 497.5 MB, free: 15.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001673/0.1321, allocations: 0.7655 MB / 498.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1321, allocations: 15.95 kB / 498.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.1324, allocations: 71.2 kB / 498.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.1335, allocations: 0.5367 MB / 498.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.1335, allocations: 29 kB / 498.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.679e-05/0.1336, allocations: 51.98 kB / 498.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009879/0.1346, allocations: 0.6258 MB / 499.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.1346, allocations: 3.906 kB / 499.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.246e-05/0.1347, allocations: 16 kB / 499.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.1348, allocations: 56.89 kB / 499.6 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007676/0.1356, allocations: 463.5 kB / 0.4884 GB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.1387, allocations: 2.522 MB / 0.4908 GB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004304/0.1392, allocations: 281.2 kB / 0.4911 GB, free: 9.809 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.1394, allocations: 138.2 kB / 0.4912 GB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.411e-05/0.1394, allocations: 8 kB / 0.4913 GB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.1395, allocations: 38.55 kB / 0.4913 GB, free: 9.613 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.417e-06/0.1395, allocations: 0 / 0.4913 GB, free: 9.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.003154/0.1426, allocations: 1.584 MB / 0.4928 GB, free: 7.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.1427, allocations: 85.09 kB / 0.4929 GB, free: 7.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004285/0.1432, allocations: 409.8 kB / 0.4933 GB, free: 7.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.1432, allocations: 29.7 kB / 0.4933 GB, free: 7.375 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.1434, allocations: 299.5 kB / 0.4936 GB, free: 7.078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.871e-05/0.1435, allocations: 122.3 kB / 0.4937 GB, free: 6.957 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.1435, allocations: 8 kB / 0.4937 GB, free: 6.949 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1437, allocations: 358.8 kB / 0.4941 GB, free: 6.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.1439, allocations: 128.8 kB / 0.4942 GB, free: 6.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.1442, allocations: 282.8 kB / 0.4945 GB, free: 6.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.1444, allocations: 180.1 kB / 0.4947 GB, free: 5.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1445, allocations: 0 / 0.4947 GB, free: 5.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001/0.1455, allocations: 0.6791 MB / 0.4953 GB, free: 5.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1455, allocations: 4 kB / 0.4953 GB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.1455, allocations: 4 kB / 0.4953 GB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004148/0.1459, allocations: 153.9 kB / 0.4955 GB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.1462, allocations: 75.89 kB / 0.4955 GB, free: 5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002936/0.1492, allocations: 3.393 MB / 0.4989 GB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.1494, allocations: 19.98 kB / 0.4989 GB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.1495, allocations: 20 kB / 0.4989 GB, free: 1.297 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003121/0.1498, allocations: 237.6 kB / 0.4991 GB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.1499, allocations: 43.52 kB / 0.4992 GB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009274/0.1508, allocations: 0.5792 MB / 0.4997 GB, free: 412 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1508, allocations: 8 kB / 0.4997 GB, free: 404 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007072/0.1516, allocations: 483.2 kB / 0.5002 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1516, allocations: 0 / 0.5002 GB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.153, allocations: 0.9971 MB / 0.5012 GB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.153, allocations: 8 kB / 0.5012 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.1532, allocations: 44.06 kB / 0.5012 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002633/0.1535, allocations: 88.78 kB / 0.5013 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.1535, allocations: 4 kB / 0.5013 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.1553, allocations: 1.879 MB / 0.5031 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.1553, allocations: 3.938 kB / 0.5031 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008636/0.1562, allocations: 0.636 MB / 0.5038 GB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.1563, allocations: 140.5 kB / 0.5039 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.1564, allocations: 11.98 kB / 0.5039 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.1566, allocations: 12.06 kB / 0.5039 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.1566, allocations: 27.86 kB / 0.504 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.1567, allocations: 8 kB / 0.504 GB, free: 11.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003211/0.157, allocations: 299.1 kB / 0.5042 GB, free: 11.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.157, allocations: 0 / 0.5042 GB, free: 11.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005201/0.1575, allocations: 120 kB / 0.5044 GB, free: 11.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001229/0.1576, allocations: 103.2 kB / 0.5045 GB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009507/0.1586, allocations: 0.6115 MB / 0.5051 GB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1586, allocations: 4.062 kB / 0.5051 GB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004516/0.1591, allocations: 298.6 kB / 0.5053 GB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/0.1597, allocations: 106.1 kB / 0.5054 GB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.1618, allocations: 1.435 MB / 0.5068 GB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004902/0.1623, allocations: 0.9167 MB / 0.5077 GB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.1624, allocations: 39.44 kB / 0.5078 GB, free: 7.75 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1624, allocations: 0 / 0.5078 GB, free: 7.75 MB / 362.7 MB Notification: Performance of Templates: time 0.1895/0.3519, allocations: 9.875 MB / 0.5174 GB, free: 52.6 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)