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.001195/0.001195, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001225/0.001225, allocations: 195 kB / 18 MB, free: 5.105 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.23/1.23, allocations: 205.1 MB / 223.9 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.1687/0.1687, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001322/0.001322, allocations: 71.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.08349, allocations: 55.24 MB / 487.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005668/0.08919, allocations: 4.534 MB / 491.6 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.09134, allocations: 1.535 MB / 493.2 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002839/0.09164, allocations: 11.94 kB / 493.2 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004184/0.09208, allocations: 123.1 kB / 493.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007241/0.09283, allocations: 282.2 kB / 493.6 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.09313, allocations: 99.86 kB / 493.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006772/0.09382, allocations: 0.5136 MB / 494.2 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.09407, allocations: 159.9 kB / 494.4 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.09436, allocations: 203.1 kB / 494.6 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000295/0.09467, allocations: 211.1 kB / 494.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.844e-05/0.09473, allocations: 24 kB / 494.8 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.64e-05/0.09481, allocations: 28 kB / 494.8 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.09492, allocations: 103.6 kB / 494.9 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.09511, allocations: 183 kB / 495.1 MB, free: 328 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003959/0.09551, allocations: 378.8 kB / 495.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.09553, allocations: 0 / 495.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09554, allocations: 4 kB / 495.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.09555, allocations: 0 / 495.5 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.0009737/0.09653, allocations: 0.667 MB / 496.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.09657, allocations: 15.89 kB / 496.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.43e-05/0.09665, allocations: 40.47 kB / 496.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005886/0.09725, allocations: 399.7 kB / 496.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.09728, allocations: 28.48 kB / 496.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.871e-05/0.09733, allocations: 27.91 kB / 496.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.09783, allocations: 338.2 kB / 497 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.09786, allocations: 0 / 497 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.09789, allocations: 12 kB / 497 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.0979, allocations: 8 kB / 497 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.09823, allocations: 205.5 kB / 497.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.09966, allocations: 1.474 MB / 498.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.1, allocations: 194.3 kB / 498.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1002, allocations: 83.47 kB / 498.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.1002, allocations: 4 kB / 498.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1002, allocations: 38.5 kB / 499 MB, free: 12.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.453e-06/0.1002, allocations: 0 / 499 MB, free: 12.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001001/0.1012, allocations: 0.7062 MB / 499.7 MB, free: 11.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.1013, allocations: 128.5 kB / 499.8 MB, free: 11.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1016, allocations: 317.6 kB / 0.4884 GB, free: 10.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.1016, allocations: 29.7 kB / 0.4884 GB, free: 10.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1017, allocations: 211.8 kB / 0.4886 GB, free: 10.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.1018, allocations: 67.03 kB / 0.4887 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.186e-05/0.1019, allocations: 57.89 kB / 0.4887 GB, free: 10.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.102, allocations: 346.8 kB / 0.4891 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.914e-05/0.1021, allocations: 47.97 kB / 0.4891 GB, free: 10.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1022, allocations: 156.8 kB / 0.4893 GB, free: 9.953 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.1025, allocations: 224.7 kB / 0.4895 GB, free: 9.688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1025, allocations: 0 / 0.4895 GB, free: 9.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003507/0.1029, allocations: 252.9 kB / 0.4897 GB, free: 9.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1029, allocations: 4 kB / 0.4897 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1029, allocations: 8.422 kB / 0.4897 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1029, allocations: 15.94 kB / 0.4897 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.1033, allocations: 71.91 kB / 0.4898 GB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008261/0.1041, allocations: 1.377 MB / 0.4912 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.1043, allocations: 8 kB / 0.4912 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.1043, allocations: 8 kB / 0.4912 GB, free: 7.801 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.0001516/0.1045, allocations: 177.6 kB / 0.4913 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.1045, allocations: 35.72 kB / 0.4914 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.1048, allocations: 176.5 kB / 0.4915 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1049, allocations: 4 kB / 0.4915 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1049, allocations: 3.938 kB / 0.4916 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.1049, allocations: 3.984 kB / 0.4916 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007011/0.1056, allocations: 0.5493 MB / 0.4921 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1056, allocations: 0 / 0.4921 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.1058, allocations: 51.94 kB / 0.4921 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1058, allocations: 0 / 0.4921 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.1058, allocations: 8 kB / 0.4922 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.1059, allocations: 0 / 0.4922 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1059, allocations: 4 kB / 0.4922 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.1063, allocations: 0.4905 MB / 0.4926 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.1064, allocations: 104.7 kB / 0.4927 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.1064, allocations: 8 kB / 0.4927 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.1066, allocations: 4 kB / 0.4927 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.1066, allocations: 19.97 kB / 0.4928 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.1067, allocations: 7.984 kB / 0.4928 GB, free: 6.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001981/0.1069, allocations: 223.2 kB / 0.493 GB, free: 5.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1069, allocations: 0 / 0.493 GB, free: 5.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004019/0.1073, allocations: 56 kB / 0.493 GB, free: 5.785 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.000102/0.1074, allocations: 107.2 kB / 0.4931 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003419/0.1077, allocations: 159.7 kB / 0.4933 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1078, allocations: 0.875 kB / 0.4933 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.1079, allocations: 67.91 kB / 0.4934 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006718/0.1085, allocations: 93.39 kB / 0.4934 GB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.1099, allocations: 0.8153 MB / 0.4942 GB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.1103, allocations: 0.8029 MB / 0.495 GB, free: 3.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.1105, allocations: 54.94 kB / 0.4951 GB, free: 3.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.245e-05/0.1105, allocations: 23.44 kB / 0.4951 GB, free: 3.602 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1105, allocations: 0 / 0.4951 GB, free: 3.602 MB / 382.1 MB Notification: Performance of Templates: time 0.006744/0.1173, allocations: 3.339 MB / 0.4984 GB, free: 264 kB / 382.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)