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.001158/0.001159, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.00143/0.00143, allocations: 200 kB / 18.01 MB, free: 5.066 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.467/1.467, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1968/0.1968, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 55.91 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4108, allocations: 58.07 MB / 0.5041 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005934/0.4167, allocations: 4.522 MB / 0.5085 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.4193, allocations: 1.497 MB / 0.51 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004123/0.4198, allocations: 12.94 kB / 0.51 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005784/0.4204, allocations: 118.4 kB / 0.5101 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009552/0.4214, allocations: 276.3 kB / 0.5104 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003729/0.4218, allocations: 116 kB / 0.5105 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007914/0.4226, allocations: 0.4985 MB / 0.511 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.4229, allocations: 159.7 kB / 0.5111 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.4232, allocations: 200.2 kB / 0.5113 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003305/0.4236, allocations: 208.8 kB / 0.5115 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.442e-05/0.4236, allocations: 29.36 kB / 0.5115 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.904e-05/0.4237, allocations: 30.88 kB / 0.5116 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.4238, allocations: 100.2 kB / 0.5117 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.424, allocations: 189 kB / 0.5118 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005749/0.4246, allocations: 381.3 kB / 0.5122 GB, free: 2.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4246, allocations: 0 / 0.5122 GB, free: 2.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4246, allocations: 0 / 0.5122 GB, free: 2.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.4246, allocations: 0 / 0.5122 GB, free: 2.523 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.001042/0.4257, allocations: 0.6787 MB / 0.5129 GB, free: 1.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.4257, allocations: 9.781 kB / 0.5129 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.456e-05/0.4258, allocations: 45.41 kB / 0.5129 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006983/0.4265, allocations: 403.5 kB / 0.5133 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.4266, allocations: 24.31 kB / 0.5133 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.491e-05/0.4267, allocations: 37.33 kB / 0.5134 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005462/0.4272, allocations: 332.5 kB / 0.5137 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.4272, allocations: 1.062 kB / 0.5137 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.4273, allocations: 10.72 kB / 0.5137 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.4273, allocations: 7.594 kB / 0.5137 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000355/0.4277, allocations: 203.3 kB / 0.5139 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.4292, allocations: 1.492 MB / 0.5154 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.4297, allocations: 197.1 kB / 0.5155 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.4298, allocations: 75.56 kB / 0.5156 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.4298, allocations: 6.031 kB / 0.5156 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/0.4299, allocations: 34.09 kB / 0.5157 GB, free: 15.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.924e-06/0.4299, allocations: 4 kB / 0.5157 GB, free: 15.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001352/0.4313, allocations: 0.6948 MB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.4314, allocations: 135.9 kB / 0.5165 GB, free: 15.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.4319, allocations: 319.9 kB / 0.5168 GB, free: 14.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.4319, allocations: 31.11 kB / 0.5168 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.4321, allocations: 220.9 kB / 0.517 GB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.4322, allocations: 64.34 kB / 0.5171 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.4323, allocations: 57.06 kB / 0.5171 GB, free: 14.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4324, allocations: 344 kB / 0.5175 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.4326, allocations: 50.19 kB / 0.5175 GB, free: 14.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.4328, allocations: 152.7 kB / 0.5176 GB, free: 14.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000329/0.4331, allocations: 219.7 kB / 0.5179 GB, free: 14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4331, allocations: 1.094 kB / 0.5179 GB, free: 14 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004899/0.4336, allocations: 253.8 kB / 0.5181 GB, free: 13.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.4337, allocations: 14.84 kB / 0.5181 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4337, allocations: 4.094 kB / 0.5181 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.4337, allocations: 9.219 kB / 0.5181 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.4341, allocations: 77.48 kB / 0.5182 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009957/0.4351, allocations: 1.374 MB / 0.5195 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.4353, allocations: 9.406 kB / 0.5196 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.4354, allocations: 14.64 kB / 0.5196 GB, free: 12.41 MB / 398.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.0002373/0.4356, allocations: 169.7 kB / 0.5197 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.4357, allocations: 35.02 kB / 0.5198 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004057/0.4361, allocations: 187.5 kB / 0.5199 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.4361, allocations: 3.703 kB / 0.5199 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4361, allocations: 1.562 kB / 0.5199 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.4362, allocations: 6.391 kB / 0.52 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009338/0.4371, allocations: 0.5457 MB / 0.5205 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.4371, allocations: 1.672 kB / 0.5205 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.4373, allocations: 46.78 kB / 0.5205 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4374, allocations: 2 kB / 0.5205 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.4374, allocations: 7.438 kB / 0.5205 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.4374, allocations: 2.438 kB / 0.5205 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4374, allocations: 1 kB / 0.5205 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005175/0.4379, allocations: 0.4938 MB / 0.521 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.991e-05/0.438, allocations: 102.9 kB / 0.5211 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.4381, allocations: 7.703 kB / 0.5211 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.4383, allocations: 5.969 kB / 0.5211 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.409e-05/0.4383, allocations: 17.75 kB / 0.5212 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.4383, allocations: 5.469 kB / 0.5212 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.4386, allocations: 228.7 kB / 0.5214 GB, free: 11.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4386, allocations: 0 / 0.5214 GB, free: 11.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004391/0.439, allocations: 56.47 kB / 0.5214 GB, free: 11.09 MB / 398.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.0001272/0.4391, allocations: 100.2 kB / 0.5215 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.4395, allocations: 168.9 kB / 0.5217 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4396, allocations: 4.188 kB / 0.5217 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.4397, allocations: 70.09 kB / 0.5218 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007509/0.4405, allocations: 95.7 kB / 0.5218 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.442, allocations: 0.8304 MB / 0.5227 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004318/0.4424, allocations: 0.8059 MB / 0.5234 GB, free: 9.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001867/0.4426, allocations: 54.16 kB / 0.5235 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.316e-05/0.4427, allocations: 30.19 kB / 0.5235 GB, free: 9.605 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4427, allocations: 0 / 0.5235 GB, free: 9.605 MB / 398.1 MB Notification: Performance of Templates: time 0.008765/0.4515, allocations: 3.247 MB / 0.5267 GB, free: 9.352 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)