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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001627/0.001627, allocations: 109.1 kB / 17.28 MB, free: 6.059 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.001653/0.001653, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 241.9 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2957/0.2957, allocations: 38.02 MB / 330.1 MB, free: 8.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 62.12 kB / 398.9 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1819, allocations: 58.06 MB / 457 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.009946/0.1919, allocations: 5.177 MB / 462.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003903/0.1959, allocations: 1.667 MB / 463.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006087/0.1966, allocations: 31.81 kB / 463.9 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006092/0.1972, allocations: 103.4 kB / 464 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001022/0.1983, allocations: 246.7 kB / 464.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/0.1987, allocations: 99.89 kB / 464.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009864/0.1997, allocations: 0.502 MB / 464.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003504/0.2001, allocations: 163.8 kB / 465 MB, free: 380 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000368/0.2004, allocations: 203.1 kB / 465.2 MB, free: 176 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004217/0.2009, allocations: 215.1 kB / 465.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-05/0.2009, allocations: 24 kB / 465.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.562e-05/0.201, allocations: 28 kB / 465.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.2012, allocations: 103.7 kB / 465.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002615/0.2015, allocations: 187 kB / 465.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.2019, allocations: 283.4 kB / 466 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.202, allocations: 0 / 466 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.202, allocations: 0 / 466 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.202, allocations: 4 kB / 466 MB, free: 15.34 MB / 350.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.001475/0.2035, allocations: 0.6631 MB / 466.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/0.2035, allocations: 15.89 kB / 466.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.2037, allocations: 40.47 kB / 466.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007883/0.2045, allocations: 375.7 kB / 467.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.2045, allocations: 24.5 kB / 467.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.511e-05/0.2046, allocations: 27.94 kB / 467.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006838/0.2053, allocations: 338.2 kB / 467.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.2053, allocations: 4 kB / 467.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.2054, allocations: 8 kB / 467.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.2054, allocations: 15.98 kB / 467.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004588/0.2059, allocations: 205.5 kB / 467.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.2081, allocations: 1.498 MB / 469.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.2086, allocations: 194 kB / 469.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.2088, allocations: 75.41 kB / 469.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.2088, allocations: 7.938 kB / 469.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.2089, allocations: 38.81 kB / 469.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.264e-06/0.2089, allocations: 0 / 469.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001519/0.2104, allocations: 0.6802 MB / 470.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.2105, allocations: 140.5 kB / 470.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004298/0.211, allocations: 317.6 kB / 470.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.211, allocations: 29.7 kB / 470.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.2113, allocations: 215.8 kB / 470.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.715e-05/0.2114, allocations: 66.98 kB / 470.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.2115, allocations: 53.69 kB / 471 MB, free: 9.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.2117, allocations: 346.8 kB / 471.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.2118, allocations: 51.97 kB / 471.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.212, allocations: 136.9 kB / 471.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/0.2125, allocations: 231.6 kB / 471.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2125, allocations: 0 / 471.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000556/0.2131, allocations: 260.9 kB / 472 MB, free: 8.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.2131, allocations: 4 kB / 472 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.2131, allocations: 4 kB / 472 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.2132, allocations: 7.938 kB / 472 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005088/0.2137, allocations: 84.33 kB / 472.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.2152, allocations: 1.373 MB / 473.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.2154, allocations: 12 kB / 473.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.2154, allocations: 8 kB / 473.5 MB, free: 7.219 MB / 350.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.0002503/0.2157, allocations: 169.7 kB / 473.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.2158, allocations: 31.53 kB / 473.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004251/0.2163, allocations: 196.5 kB / 473.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.2163, allocations: 4 kB / 473.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.2163, allocations: 0 / 473.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2163, allocations: 0 / 473.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.2175, allocations: 0.5412 MB / 474.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.2175, allocations: 4 kB / 474.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003132/0.2178, allocations: 51.94 kB / 474.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.2179, allocations: 0 / 474.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.2179, allocations: 8 kB / 474.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2179, allocations: 0 / 474.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2179, allocations: 0 / 474.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006946/0.2186, allocations: 0.4934 MB / 475 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.2188, allocations: 104.6 kB / 475.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.2188, allocations: 8 kB / 475.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.2191, allocations: 4.031 kB / 475.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.2192, allocations: 23.86 kB / 475.1 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.2192, allocations: 4 kB / 475.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.2196, allocations: 223.2 kB / 475.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.054e-06/0.2196, allocations: 0 / 475.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000612/0.2202, allocations: 59.94 kB / 475.4 MB, free: 5.203 MB / 350.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.000164/0.2204, allocations: 103.2 kB / 475.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005963/0.221, allocations: 179 kB / 475.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.221, allocations: 0.875 kB / 475.7 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.2212, allocations: 68.03 kB / 475.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.2222, allocations: 88.94 kB / 475.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.2246, allocations: 0.9811 MB / 476.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005888/0.2253, allocations: 0.799 MB / 477.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.2254, allocations: 31.42 kB / 477.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2254, allocations: 0 / 477.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of Templates: time 0.01224/0.2376, allocations: 4.717 MB / 482.3 MB, free: 14.2 MB / 366.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)