Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.001771, allocations: 176.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2188/0.2188, allocations: 37.98 MB / 309.9 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.91 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 55.25 MB / 487.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006921/0.1136, allocations: 4.541 MB / 492.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1163, allocations: 1.527 MB / 493.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003724/0.1167, allocations: 19.88 kB / 493.9 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005426/0.1173, allocations: 119.1 kB / 494 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009048/0.1182, allocations: 278.3 kB / 494.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.1186, allocations: 107.8 kB / 494.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008835/0.1195, allocations: 0.5097 MB / 494.9 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.1198, allocations: 159.9 kB / 495 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.1202, allocations: 203.2 kB / 495.2 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004473/0.1206, allocations: 211.1 kB / 495.4 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.467e-05/0.1207, allocations: 24 kB / 495.5 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.53e-05/0.1208, allocations: 31.94 kB / 495.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1209, allocations: 95.72 kB / 495.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.1211, allocations: 187 kB / 495.8 MB, free: 320 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004504/0.1216, allocations: 374.7 kB / 496.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1216, allocations: 4 kB / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.1216, allocations: 0 / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1216, allocations: 3.938 kB / 496.1 MB, free: 15.94 MB / 382.1 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.001098/0.1227, allocations: 0.6671 MB / 496.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1228, allocations: 11.89 kB / 496.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.748e-05/0.1229, allocations: 40.47 kB / 496.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/0.1235, allocations: 399.7 kB / 497.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.1236, allocations: 28.48 kB / 497.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.464e-05/0.1236, allocations: 31.91 kB / 497.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.1241, allocations: 330.2 kB / 497.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.1242, allocations: 7.938 kB / 497.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.1242, allocations: 8 kB / 497.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1242, allocations: 8 kB / 497.7 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.1245, allocations: 205.5 kB / 497.9 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.1261, allocations: 1.474 MB / 499.3 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.1265, allocations: 198.3 kB / 499.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.1266, allocations: 83.45 kB / 499.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.1267, allocations: 4 kB / 499.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.1267, allocations: 42.44 kB / 499.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.442e-06/0.1267, allocations: 0 / 499.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001104/0.1278, allocations: 0.6908 MB / 0.4886 GB, free: 11.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.1279, allocations: 128.5 kB / 0.4887 GB, free: 11.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.1283, allocations: 317.6 kB / 0.489 GB, free: 10.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1283, allocations: 29.7 kB / 0.4891 GB, free: 10.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1284, allocations: 211.8 kB / 0.4893 GB, free: 10.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.933e-05/0.1285, allocations: 67.47 kB / 0.4893 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.1286, allocations: 53.61 kB / 0.4894 GB, free: 10.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1287, allocations: 350.7 kB / 0.4897 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-05/0.1288, allocations: 51.97 kB / 0.4898 GB, free: 10.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.129, allocations: 148.8 kB / 0.4899 GB, free: 9.961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.1293, allocations: 220.7 kB / 0.4901 GB, free: 9.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1293, allocations: 4 kB / 0.4901 GB, free: 9.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003623/0.1296, allocations: 252.9 kB / 0.4904 GB, free: 9.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1297, allocations: 16.36 kB / 0.4904 GB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.1297, allocations: 7.984 kB / 0.4904 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.1297, allocations: 11.94 kB / 0.4904 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/0.1301, allocations: 75.84 kB / 0.4905 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.1312, allocations: 1.381 MB / 0.4918 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1314, allocations: 8 kB / 0.4918 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.1314, allocations: 8 kB / 0.4918 GB, free: 7.793 MB / 382.1 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.1316, allocations: 173.8 kB / 0.492 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.511e-05/0.1317, allocations: 31.62 kB / 0.492 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003103/0.132, allocations: 184.7 kB / 0.4922 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.132, allocations: 4 kB / 0.4922 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.132, allocations: 0 / 0.4922 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.132, allocations: 7.984 kB / 0.4922 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007686/0.1328, allocations: 0.5373 MB / 0.4927 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1328, allocations: 7.938 kB / 0.4928 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000234/0.1331, allocations: 44 kB / 0.4928 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1331, allocations: 0 / 0.4928 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.1331, allocations: 8 kB / 0.4928 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1331, allocations: 0 / 0.4928 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1331, allocations: 4 kB / 0.4928 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.1336, allocations: 0.4905 MB / 0.4933 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.771e-05/0.1337, allocations: 104.7 kB / 0.4934 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.1337, allocations: 8 kB / 0.4934 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.1339, allocations: 0 / 0.4934 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.1339, allocations: 24.06 kB / 0.4934 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.134, allocations: 11.97 kB / 0.4934 GB, free: 6.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002101/0.1342, allocations: 223.2 kB / 0.4936 GB, free: 5.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1342, allocations: 0 / 0.4936 GB, free: 5.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004196/0.1346, allocations: 60 kB / 0.4937 GB, free: 5.781 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001194/0.1347, allocations: 103.2 kB / 0.4938 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004073/0.1352, allocations: 168.4 kB / 0.494 GB, free: 5.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1352, allocations: 0 / 0.494 GB, free: 5.504 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1353, allocations: 64.05 kB / 0.494 GB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007358/0.136, allocations: 93.59 kB / 0.4941 GB, free: 5.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.1376, allocations: 0.8484 MB / 0.4949 GB, free: 4.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.138, allocations: 0.8027 MB / 0.4957 GB, free: 3.629 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.341e-05/0.1381, allocations: 27.44 kB / 0.4957 GB, free: 3.605 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1381, allocations: 0 / 0.4957 GB, free: 3.605 MB / 382.1 MB Notification: Performance of Templates: time 0.007976/0.146, allocations: 4.737 MB / 0.5004 GB, free: 14.86 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)