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.001088/0.001088, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001048/0.001048, allocations: 184.5 kB / 18.67 MB, free: 4.398 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.402/1.402, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1764/0.1764, allocations: 37.98 MB / 309.9 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.001452/0.001452, allocations: 63.03 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1006, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005911/0.1066, allocations: 4.545 MB / 492.3 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.1087, allocations: 1.527 MB / 493.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.109, allocations: 23.88 kB / 493.9 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004194/0.1094, allocations: 111.2 kB / 494 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006297/0.1101, allocations: 274.3 kB / 494.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.1103, allocations: 111.8 kB / 494.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006693/0.111, allocations: 0.5097 MB / 494.9 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.1113, allocations: 163.9 kB / 495 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.1116, allocations: 199.2 kB / 495.2 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002884/0.1119, allocations: 211.1 kB / 495.4 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.1119, allocations: 28 kB / 495.5 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.211e-05/0.112, allocations: 27.94 kB / 495.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1121, allocations: 99.72 kB / 495.6 MB, free: 500 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/0.1123, allocations: 183 kB / 495.8 MB, free: 316 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000385/0.1127, allocations: 374.7 kB / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1127, allocations: 0 / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1127, allocations: 8 kB / 496.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1127, allocations: 0 / 496.1 MB, free: 15.93 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.001033/0.1138, allocations: 0.667 MB / 496.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1138, allocations: 11.89 kB / 496.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.51e-05/0.1139, allocations: 40.47 kB / 496.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.1145, allocations: 403.7 kB / 497.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.1145, allocations: 24.48 kB / 497.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.1146, allocations: 31.91 kB / 497.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.115, allocations: 334.2 kB / 497.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.115, allocations: 0 / 497.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.1151, allocations: 15.94 kB / 497.6 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1151, allocations: 8 kB / 497.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.1154, allocations: 201.5 kB / 497.9 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.1169, allocations: 1.478 MB / 499.3 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.1173, allocations: 198.3 kB / 499.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.1174, allocations: 79.53 kB / 499.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.1175, allocations: 4 kB / 499.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1175, allocations: 42.5 kB / 499.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.1175, allocations: 3.938 kB / 499.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001076/0.1186, allocations: 0.687 MB / 0.4886 GB, free: 11.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.1187, allocations: 132.5 kB / 0.4887 GB, free: 11.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.119, allocations: 317.6 kB / 0.489 GB, free: 10.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.119, allocations: 29.7 kB / 0.4891 GB, free: 10.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.1192, allocations: 211.8 kB / 0.4893 GB, free: 10.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.066e-05/0.1192, allocations: 67.45 kB / 0.4893 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.1193, allocations: 53.61 kB / 0.4894 GB, free: 10.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1194, allocations: 346.8 kB / 0.4897 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.955e-05/0.1195, allocations: 55.91 kB / 0.4898 GB, free: 10.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.1197, allocations: 148.8 kB / 0.4899 GB, free: 9.953 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.1199, allocations: 220.7 kB / 0.4901 GB, free: 9.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1199, allocations: 4 kB / 0.4901 GB, free: 9.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003444/0.1203, allocations: 244.9 kB / 0.4904 GB, free: 9.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1203, allocations: 15.92 kB / 0.4904 GB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1203, allocations: 4.438 kB / 0.4904 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1204, allocations: 11.94 kB / 0.4904 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.1207, allocations: 79.91 kB / 0.4905 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008856/0.1216, allocations: 1.381 MB / 0.4918 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.1218, allocations: 8 kB / 0.4918 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.1218, allocations: 12 kB / 0.4918 GB, free: 7.789 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.0001655/0.122, allocations: 169.8 kB / 0.492 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.513e-05/0.1221, allocations: 31.62 kB / 0.492 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.1224, allocations: 184.7 kB / 0.4922 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1224, allocations: 4 kB / 0.4922 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1224, allocations: 4 kB / 0.4922 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1224, allocations: 3.984 kB / 0.4922 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007351/0.1232, allocations: 0.5412 MB / 0.4927 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1232, allocations: 0 / 0.4927 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.1234, allocations: 47.94 kB / 0.4928 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.1234, allocations: 7.984 kB / 0.4928 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1235, allocations: 4 kB / 0.4928 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1235, allocations: 4 kB / 0.4928 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1235, allocations: 0 / 0.4928 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004422/0.1239, allocations: 0.4944 MB / 0.4933 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.393e-05/0.124, allocations: 100.7 kB / 0.4934 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.124, allocations: 7.938 kB / 0.4934 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.1242, allocations: 4 kB / 0.4934 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.1243, allocations: 15.97 kB / 0.4934 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.1243, allocations: 11.98 kB / 0.4934 GB, free: 6.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.1245, allocations: 215.2 kB / 0.4936 GB, free: 5.848 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1245, allocations: 0 / 0.4936 GB, free: 5.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004181/0.1249, allocations: 64 kB / 0.4937 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.0001123/0.125, allocations: 103.2 kB / 0.4938 GB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003814/0.1254, allocations: 164.5 kB / 0.4939 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.1255, allocations: 4 kB / 0.4939 GB, free: 5.508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.1256, allocations: 63.98 kB / 0.494 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.0007241/0.1263, allocations: 101.5 kB / 0.4941 GB, free: 5.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.1278, allocations: 0.8524 MB / 0.4949 GB, free: 4.453 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.1281, allocations: 0.7988 MB / 0.4957 GB, free: 3.625 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.821e-05/0.1282, allocations: 27.44 kB / 0.4957 GB, free: 3.602 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1282, allocations: 0 / 0.4957 GB, free: 3.602 MB / 382.1 MB Notification: Performance of Templates: time 0.007317/0.1355, allocations: 4.784 MB / 0.5004 GB, free: 14.81 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)