Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001284/0.001284, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001183/0.001183, allocations: 195.9 kB / 18 MB, free: 4.965 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.361/1.361, 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.1758/0.1758, allocations: 38.02 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00303/0.00303, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3121, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.004725/0.3168, allocations: 4.579 MB / 0.5081 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.3187, allocations: 1.469 MB / 0.5095 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.3189, allocations: 12.97 kB / 0.5095 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009076/0.3198, allocations: 385.5 kB / 0.5099 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004059/0.3202, allocations: 224.3 kB / 0.5101 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.3208, allocations: 257.9 kB / 0.5104 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.3213, allocations: 0.5656 MB / 0.5109 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.3217, allocations: 330.8 kB / 0.5112 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.322, allocations: 257.1 kB / 0.5115 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.3224, allocations: 315.8 kB / 0.5118 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.86e-05/0.3225, allocations: 34.22 kB / 0.5118 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002659/0.3227, allocations: 137.5 kB / 0.5119 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.323, allocations: 226.8 kB / 0.5122 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.3232, allocations: 252.6 kB / 0.5124 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006189/0.3238, allocations: 0.5985 MB / 0.513 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3238, allocations: 0.5156 kB / 0.513 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3239, allocations: 0 / 0.513 GB, free: 1.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.3239, allocations: 0 / 0.513 GB, free: 1.75 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00109/0.325, allocations: 0.7813 MB / 0.5137 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.325, allocations: 13.14 kB / 0.5138 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.634e-05/0.3251, allocations: 87.52 kB / 0.5138 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005353/0.3256, allocations: 101 kB / 0.5139 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.3261, allocations: 418.8 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.3262, allocations: 29.22 kB / 0.5144 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3263, allocations: 59.64 kB / 0.5144 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008636/0.3272, allocations: 0.6494 MB / 0.5151 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.3272, allocations: 1.438 kB / 0.5151 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.3273, allocations: 18.16 kB / 0.5151 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.3274, allocations: 33.91 kB / 0.5151 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006699/0.3281, allocations: 480.7 kB / 0.5156 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003619/0.3317, allocations: 3.02 MB / 0.5185 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.332, allocations: 192.5 kB / 0.5187 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3322, allocations: 102 kB / 0.5188 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.535e-05/0.3322, allocations: 7.75 kB / 0.5188 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.3323, allocations: 45.67 kB / 0.5188 GB, free: 13.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.684e-06/0.3323, allocations: 0 / 0.5188 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=21): time 0.00142/0.3337, allocations: 0.8446 MB / 0.5197 GB, free: 13.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.3338, allocations: 80.3 kB / 0.5197 GB, free: 12.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003642/0.3342, allocations: 352.9 kB / 0.5201 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.3342, allocations: 26.95 kB / 0.5201 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.3344, allocations: 308.2 kB / 0.5204 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/0.3345, allocations: 86.59 kB / 0.5205 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.3346, allocations: 84.88 kB / 0.5206 GB, free: 12.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3348, allocations: 346 kB / 0.5209 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.335, allocations: 134.2 kB / 0.521 GB, free: 11.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.3354, allocations: 324.8 kB / 0.5213 GB, free: 11.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.336, allocations: 0.4949 MB / 0.5218 GB, free: 11.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.336, allocations: 10.38 kB / 0.5218 GB, free: 11.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000971/0.337, allocations: 0.555 MB / 0.5224 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.337, allocations: 7.25 kB / 0.5224 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005126/0.3376, allocations: 276.8 kB / 0.5226 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003352/0.3379, allocations: 88.78 kB / 0.5227 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/0.3382, allocations: 92.7 kB / 0.5228 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.34, allocations: 1.73 MB / 0.5245 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.3402, allocations: 15.5 kB / 0.5245 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.3403, allocations: 23.77 kB / 0.5245 GB, free: 9.387 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002704/0.3406, allocations: 219 kB / 0.5247 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-05/0.3406, allocations: 30.8 kB / 0.5248 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005003/0.3411, allocations: 304.1 kB / 0.5251 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3412, allocations: 4.281 kB / 0.5251 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-06/0.3412, allocations: 0 / 0.5251 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.3412, allocations: 2.719 kB / 0.5251 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.3424, allocations: 0.7871 MB / 0.5258 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-06/0.3424, allocations: 5.75 kB / 0.5258 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/0.3427, allocations: 50.3 kB / 0.5259 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.3427, allocations: 6.688 kB / 0.5259 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.3428, allocations: 11.66 kB / 0.5259 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3428, allocations: 2.109 kB / 0.5259 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3428, allocations: 5.344 kB / 0.5259 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006302/0.3434, allocations: 478.1 kB / 0.5264 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.922e-05/0.3435, allocations: 108 kB / 0.5265 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.3436, allocations: 15.2 kB / 0.5265 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3437, allocations: 10.89 kB / 0.5265 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.3438, allocations: 21.19 kB / 0.5265 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3438, allocations: 6.641 kB / 0.5265 GB, free: 8.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002483/0.3441, allocations: 235.7 kB / 0.5268 GB, free: 8.027 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3441, allocations: 4 kB / 0.5268 GB, free: 8.023 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004664/0.3445, allocations: 93.03 kB / 0.5268 GB, free: 8.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (24): * Single equations (assignments): 23 * 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.0009003/0.3454, allocations: 1.014 MB / 0.5278 GB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007236/0.3462, allocations: 436.5 kB / 0.5283 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3462, allocations: 0.5625 kB / 0.5283 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.3464, allocations: 119 kB / 0.5284 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.3469, allocations: 65.38 kB / 0.5284 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005044/0.3519, allocations: 4.007 MB / 0.5323 GB, free: 4.207 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.3524, allocations: 0.866 MB / 0.5332 GB, free: 3.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00028/0.3527, allocations: 110.8 kB / 0.5333 GB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.353, allocations: 145.8 kB / 0.5334 GB, free: 3.367 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.353, allocations: 0 / 0.5334 GB, free: 3.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03301/0.386, allocations: 7.409 MB / 0.5407 GB, free: 164 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.927/10.31, allocations: 5.359 kB / 0.5407 GB, free: 160 kB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)