Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00159/0.001596, allocations: 188.1 kB / 15.77 MB, free: 5.984 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.066/2.066, 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.001152/0.001152, allocations: 102.8 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.2864/0.2864, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004682, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1083, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007618/0.116, allocations: 4.396 MB / 483.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00379/0.1198, allocations: 1.599 MB / 485 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005249/0.1204, allocations: 27.81 kB / 485.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005381/0.121, allocations: 99.38 kB / 485.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.1223, allocations: 291 kB / 485.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.1229, allocations: 119.8 kB / 485.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009038/0.1238, allocations: 319.3 kB / 485.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.1241, allocations: 117.8 kB / 486 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.1246, allocations: 151.4 kB / 486.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003528/0.1249, allocations: 151.3 kB / 486.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.374e-05/0.125, allocations: 20 kB / 486.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.538e-05/0.1251, allocations: 16 kB / 486.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1252, allocations: 79.73 kB / 486.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.1254, allocations: 93.5 kB / 486.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004552/0.1258, allocations: 275.3 kB / 486.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1259, allocations: 3.938 kB / 486.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1259, allocations: 0 / 486.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.1259, allocations: 0 / 486.7 MB, free: 10.28 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00139/0.1273, allocations: 0.6047 MB / 487.4 MB, free: 9.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.1274, allocations: 8.031 kB / 487.4 MB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.1275, allocations: 47.47 kB / 487.4 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008932/0.1284, allocations: 366.6 kB / 487.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.1284, allocations: 16.56 kB / 487.8 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.478e-05/0.1285, allocations: 36 kB / 487.8 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007409/0.1293, allocations: 326.2 kB / 488.1 MB, free: 8.766 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.1293, allocations: 3.906 kB / 488.1 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.123e-05/0.1294, allocations: 16 kB / 488.2 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1294, allocations: 8 kB / 488.2 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005925/0.13, allocations: 205.5 kB / 488.4 MB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002372/0.1324, allocations: 1.486 MB / 489.8 MB, free: 6.953 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005898/0.133, allocations: 206.4 kB / 490.1 MB, free: 6.715 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.1331, allocations: 3.938 kB / 490.1 MB, free: 6.711 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.1331, allocations: 42.62 kB / 490.1 MB, free: 6.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 4.458e-06/0.1331, allocations: 0 / 490.1 MB, free: 6.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.001619/0.1348, allocations: 0.6778 MB / 490.8 MB, free: 5.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/0.1349, allocations: 136.5 kB / 490.9 MB, free: 5.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004785/0.1354, allocations: 317.6 kB / 491.2 MB, free: 5.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1354, allocations: 26.08 kB / 491.2 MB, free: 5.414 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.1356, allocations: 266.2 kB / 491.5 MB, free: 5.148 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.719e-05/0.1357, allocations: 59.11 kB / 491.6 MB, free: 5.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.1357, allocations: 8 kB / 491.6 MB, free: 5.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1359, allocations: 318.8 kB / 491.9 MB, free: 4.762 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.136, allocations: 51.97 kB / 491.9 MB, free: 4.711 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.1363, allocations: 140.9 kB / 492.1 MB, free: 4.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.1365, allocations: 71.92 kB / 492.1 MB, free: 4.457 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.1365, allocations: 4 kB / 492.1 MB, free: 4.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005874/0.1371, allocations: 241.3 kB / 492.4 MB, free: 4.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.1372, allocations: 8 kB / 492.4 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1372, allocations: 4 kB / 492.4 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.1372, allocations: 7.953 kB / 492.4 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007082/0.1379, allocations: 83.89 kB / 492.5 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.1391, allocations: 1.286 MB / 493.8 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.1394, allocations: 15.84 kB / 493.8 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.1395, allocations: 8 kB / 493.8 MB, free: 2.664 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002728/0.1397, allocations: 173.9 kB / 494 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.1399, allocations: 31.62 kB / 494 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000481/0.1404, allocations: 184.5 kB / 494.2 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.1404, allocations: 7.953 kB / 494.2 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1404, allocations: 0 / 494.2 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1404, allocations: 0 / 494.2 MB, free: 2.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.1416, allocations: 0.5414 MB / 494.7 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1416, allocations: 0 / 494.7 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.1421, allocations: 47.91 kB / 494.8 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.1421, allocations: 3.953 kB / 494.8 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.1422, allocations: 8 kB / 494.8 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1422, allocations: 0 / 494.8 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.1422, allocations: 4 kB / 494.8 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007426/0.1429, allocations: 0.5267 MB / 495.3 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.1431, allocations: 108.7 kB / 495.4 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.772e-05/0.1431, allocations: 4.031 kB / 495.4 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.1435, allocations: 11.94 kB / 495.4 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.1435, allocations: 15.98 kB / 495.4 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.1436, allocations: 8 kB / 495.5 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003216/0.1439, allocations: 215.2 kB / 495.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1439, allocations: 0 / 495.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006163/0.1445, allocations: 60 kB / 495.7 MB, free: 0.5977 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001456/0.1447, allocations: 111.7 kB / 495.8 MB, free: 492 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006145/0.1453, allocations: 155.9 kB / 496 MB, free: 336 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1453, allocations: 0 / 496 MB, free: 336 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.1455, allocations: 63.92 kB / 496 MB, free: 272 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009005/0.1464, allocations: 90.19 kB / 496.1 MB, free: 180 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.1488, allocations: 1.038 MB / 497.2 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.1493, allocations: 0.807 MB / 498 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.1495, allocations: 27.44 kB / 498 MB, free: 14.24 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/0.1495, allocations: 0 / 498 MB, free: 14.24 MB / 346.7 MB Notification: Performance of Templates: time 0.01129/0.1608, allocations: 4.581 MB / 0.4908 GB, free: 9.664 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)