Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_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.001747/0.001746, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001961/0.001961, allocations: 200 kB / 18.01 MB, free: 5.047 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.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1711/0.1711, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 71.89 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3179, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.004931/0.3229, allocations: 4.577 MB / 0.5081 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.3248, allocations: 1.464 MB / 0.5095 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.325, allocations: 13.44 kB / 0.5095 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009363/0.326, allocations: 385 kB / 0.5099 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000515/0.3265, allocations: 227 kB / 0.5101 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006705/0.3272, allocations: 260.1 kB / 0.5104 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006078/0.3278, allocations: 0.5595 MB / 0.5109 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004665/0.3283, allocations: 337 kB / 0.5112 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003464/0.3286, allocations: 259.1 kB / 0.5115 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/0.3291, allocations: 319.1 kB / 0.5118 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.237e-05/0.3292, allocations: 34.72 kB / 0.5118 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00029/0.3295, allocations: 137.7 kB / 0.512 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.3297, allocations: 231.1 kB / 0.5122 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002285/0.33, allocations: 253.6 kB / 0.5124 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006818/0.3306, allocations: 0.5978 MB / 0.513 GB, free: 1.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3307, allocations: 0 / 0.513 GB, free: 1.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3307, allocations: 0 / 0.513 GB, free: 1.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.3307, allocations: 0 / 0.513 GB, free: 1.652 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.001186/0.3319, allocations: 0.7779 MB / 0.5138 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3319, allocations: 13.73 kB / 0.5138 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.865e-05/0.332, allocations: 91.06 kB / 0.5139 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005875/0.3326, allocations: 95.84 kB / 0.514 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006299/0.3332, allocations: 418.4 kB / 0.5144 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.3333, allocations: 34.34 kB / 0.5144 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.3334, allocations: 59.22 kB / 0.5144 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008721/0.3343, allocations: 0.6484 MB / 0.5151 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.3343, allocations: 5.781 kB / 0.5151 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/0.3344, allocations: 18.28 kB / 0.5151 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.3345, allocations: 32.22 kB / 0.5151 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007029/0.3352, allocations: 481.1 kB / 0.5156 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003828/0.3391, allocations: 3.021 MB / 0.5185 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.3394, allocations: 176.5 kB / 0.5187 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.3396, allocations: 106.9 kB / 0.5188 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.3396, allocations: 7.812 kB / 0.5188 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3397, allocations: 41.27 kB / 0.5189 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.3397, allocations: 0 / 0.5189 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=21): time 0.001456/0.3411, allocations: 0.8487 MB / 0.5197 GB, free: 12.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.3412, allocations: 79.36 kB / 0.5198 GB, free: 12.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003844/0.3416, allocations: 348.7 kB / 0.5201 GB, free: 12.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.3416, allocations: 34.92 kB / 0.5201 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.3419, allocations: 313.7 kB / 0.5204 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.313e-05/0.3419, allocations: 77.84 kB / 0.5205 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.3421, allocations: 89.09 kB / 0.5206 GB, free: 12.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3423, allocations: 342.9 kB / 0.5209 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.3425, allocations: 124.7 kB / 0.521 GB, free: 11.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.3429, allocations: 334.7 kB / 0.5213 GB, free: 11.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006157/0.3435, allocations: 0.4967 MB / 0.5218 GB, free: 11.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.3436, allocations: 6.188 kB / 0.5218 GB, free: 11.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009677/0.3445, allocations: 0.5572 MB / 0.5224 GB, free: 10.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.3446, allocations: 8.562 kB / 0.5224 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004951/0.3451, allocations: 271.1 kB / 0.5227 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003343/0.3454, allocations: 88.39 kB / 0.5227 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.3457, allocations: 93.72 kB / 0.5228 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/0.3474, allocations: 1.73 MB / 0.5245 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.3477, allocations: 20.94 kB / 0.5245 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.3478, allocations: 22.44 kB / 0.5246 GB, free: 9.293 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.000273/0.348, allocations: 221 kB / 0.5248 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-05/0.3481, allocations: 34.94 kB / 0.5248 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004923/0.3486, allocations: 297.6 kB / 0.5251 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3486, allocations: 2 kB / 0.5251 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3486, allocations: 2 kB / 0.5251 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3486, allocations: 1.266 kB / 0.5251 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.3499, allocations: 0.7912 MB / 0.5259 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3499, allocations: 1.375 kB / 0.5259 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/0.3502, allocations: 63.03 kB / 0.5259 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3502, allocations: 1.375 kB / 0.5259 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.3502, allocations: 5.344 kB / 0.5259 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3503, allocations: 1.984 kB / 0.5259 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3503, allocations: 5.312 kB / 0.5259 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005828/0.3508, allocations: 481.4 kB / 0.5264 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.002e-05/0.3509, allocations: 108.8 kB / 0.5265 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.351, allocations: 11.94 kB / 0.5265 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3512, allocations: 10.31 kB / 0.5265 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/0.3512, allocations: 16.83 kB / 0.5265 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.3512, allocations: 9.578 kB / 0.5265 GB, free: 8.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002264/0.3515, allocations: 235.7 kB / 0.5268 GB, free: 7.938 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3515, allocations: 0 / 0.5268 GB, free: 7.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004977/0.352, allocations: 97.66 kB / 0.5269 GB, free: 7.926 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.000864/0.3529, allocations: 1.008 MB / 0.5278 GB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007564/0.3536, allocations: 443.6 kB / 0.5283 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3536, allocations: 5.656 kB / 0.5283 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.3538, allocations: 113.5 kB / 0.5284 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/0.3543, allocations: 73.66 kB / 0.5285 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005158/0.3595, allocations: 4.002 MB / 0.5324 GB, free: 4.113 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.36, allocations: 0.8644 MB / 0.5332 GB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002851/0.3603, allocations: 110.3 kB / 0.5333 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.3605, allocations: 145.4 kB / 0.5334 GB, free: 3.277 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3605, allocations: 9.531 kB / 0.5335 GB, free: 3.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02899/0.3895, allocations: 7.413 MB / 0.5407 GB, free: 100 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.827/10.22, allocations: 15.98 kB / 0.5407 GB, free: 92 kB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches