Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001647/0.001648, allocations: 107.9 kB / 17.06 MB, free: 6.016 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.001711/0.001711, allocations: 189.4 kB / 18 MB, free: 5.102 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.395/1.395, 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.1736/0.1736, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 63.89 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3227, allocations: 58.05 MB / 0.5036 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005677/0.3285, allocations: 4.34 MB / 0.5079 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.3304, allocations: 0.93 MB / 0.5088 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.3306, allocations: 12 kB / 0.5088 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.3308, allocations: 62.16 kB / 0.5088 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000643/0.3316, allocations: 242 kB / 0.5091 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.3318, allocations: 100.7 kB / 0.5092 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005787/0.3324, allocations: 0.4925 MB / 0.5096 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.3327, allocations: 148.2 kB / 0.5098 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003386/0.3331, allocations: 220.9 kB / 0.51 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005052/0.3336, allocations: 270.1 kB / 0.5103 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.66e-05/0.3337, allocations: 23.84 kB / 0.5103 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.582e-05/0.3337, allocations: 22.66 kB / 0.5103 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.334, allocations: 148.7 kB / 0.5104 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.3342, allocations: 180.1 kB / 0.5106 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005463/0.3347, allocations: 371.9 kB / 0.511 GB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3347, allocations: 0 / 0.511 GB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3347, allocations: 0 / 0.511 GB, free: 2.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3347, allocations: 1.281 kB / 0.511 GB, free: 2.906 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001057/0.3358, allocations: 0.6678 MB / 0.5116 GB, free: 2.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3359, allocations: 14.58 kB / 0.5116 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.042e-05/0.3359, allocations: 64.34 kB / 0.5117 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.609e-05/0.336, allocations: 40.12 kB / 0.5117 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005309/0.3366, allocations: 383 kB / 0.5121 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.3366, allocations: 25.45 kB / 0.5121 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.073e-05/0.3366, allocations: 28.98 kB / 0.5122 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.3372, allocations: 356.9 kB / 0.5125 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3372, allocations: 0.8125 kB / 0.5125 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.3372, allocations: 11.59 kB / 0.5125 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.3373, allocations: 29.73 kB / 0.5125 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003804/0.3377, allocations: 234.3 kB / 0.5128 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.3393, allocations: 1.372 MB / 0.5141 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.3396, allocations: 166.9 kB / 0.5143 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.3398, allocations: 93.2 kB / 0.5143 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.3399, allocations: 6.703 kB / 0.5143 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.3399, allocations: 48.34 kB / 0.5144 GB, free: 484 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3399, allocations: 0 / 0.5144 GB, free: 484 kB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001444/0.3413, allocations: 0.7656 MB / 0.5151 GB, free: 15.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/0.3414, allocations: 84.19 kB / 0.5152 GB, free: 15.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.3418, allocations: 297.2 kB / 0.5155 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.3419, allocations: 30.77 kB / 0.5155 GB, free: 15.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.3421, allocations: 223.2 kB / 0.5157 GB, free: 15.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/0.3421, allocations: 57.09 kB / 0.5158 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.3422, allocations: 49.12 kB / 0.5159 GB, free: 15.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3424, allocations: 342 kB / 0.5162 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.3426, allocations: 62.67 kB / 0.5162 GB, free: 15.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.3428, allocations: 175.9 kB / 0.5164 GB, free: 14.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.3432, allocations: 251 kB / 0.5166 GB, free: 14.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3432, allocations: 1.219 kB / 0.5166 GB, free: 14.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005771/0.3438, allocations: 325.7 kB / 0.517 GB, free: 14.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3438, allocations: 6.969 kB / 0.517 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3438, allocations: 3.375 kB / 0.517 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002274/0.344, allocations: 51.11 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.3442, allocations: 48.2 kB / 0.5171 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.3459, allocations: 1.612 MB / 0.5186 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.3461, allocations: 6.656 kB / 0.5186 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.3461, allocations: 18.34 kB / 0.5187 GB, free: 13.03 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002271/0.3464, allocations: 167.2 kB / 0.5188 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.751e-05/0.3464, allocations: 29.28 kB / 0.5188 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004942/0.3469, allocations: 243.6 kB / 0.5191 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.347, allocations: 6.375 kB / 0.5191 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.347, allocations: 1.156 kB / 0.5191 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.347, allocations: 1.766 kB / 0.5191 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009577/0.3479, allocations: 0.6407 MB / 0.5197 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3479, allocations: 5.688 kB / 0.5197 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.3481, allocations: 21.42 kB / 0.5197 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.3483, allocations: 67.84 kB / 0.5198 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.3483, allocations: 5.156 kB / 0.5198 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.3498, allocations: 1.605 MB / 0.5214 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3498, allocations: 0.7031 kB / 0.5214 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005706/0.3504, allocations: 409.6 kB / 0.5218 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.3505, allocations: 102.5 kB / 0.5219 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.3505, allocations: 8.688 kB / 0.5219 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.3507, allocations: 7.422 kB / 0.5219 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.3507, allocations: 14.53 kB / 0.5219 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.3507, allocations: 5.328 kB / 0.5219 GB, free: 10.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.351, allocations: 209.1 kB / 0.5221 GB, free: 10.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.351, allocations: 0 / 0.5221 GB, free: 10.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004161/0.3514, allocations: 68.97 kB / 0.5222 GB, free: 10.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009026/0.3523, allocations: 0.9459 MB / 0.5231 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006077/0.3529, allocations: 306.6 kB / 0.5234 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.353, allocations: 0.9375 kB / 0.5234 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.3533, allocations: 211.8 kB / 0.5236 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004916/0.3538, allocations: 69.77 kB / 0.5236 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/0.3576, allocations: 3.06 MB / 0.5266 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.3581, allocations: 0.8062 MB / 0.5274 GB, free: 6.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00015/0.3583, allocations: 39.25 kB / 0.5275 GB, free: 6.375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.3584, allocations: 101.1 kB / 0.5276 GB, free: 6.305 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3584, allocations: 0 / 0.5276 GB, free: 6.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03466/0.3931, allocations: 6.081 MB / 0.5335 GB, free: 4.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.38, allocations: 9.188 kB / 0.5335 GB, free: 4.559 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)