Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.ImpedanceYD,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001514/0.001514, allocations: 112.9 kB / 17.06 MB, free: 5.945 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.001916/0.001916, allocations: 200 kB / 18.01 MB, free: 5.031 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1791/0.1791, allocations: 38.05 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.89 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.349, allocations: 58.06 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.005716/0.3548, allocations: 4.556 MB / 0.5081 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.3574, allocations: 1.556 MB / 0.5096 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003699/0.3578, allocations: 16.16 kB / 0.5096 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.3588, allocations: 289.9 kB / 0.5099 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008017/0.3596, allocations: 272.9 kB / 0.5101 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009526/0.3606, allocations: 251.6 kB / 0.5104 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009069/0.3615, allocations: 0.617 MB / 0.511 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004577/0.362, allocations: 258 kB / 0.5112 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004306/0.3624, allocations: 271.2 kB / 0.5115 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005369/0.363, allocations: 328 kB / 0.5118 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.759e-05/0.3631, allocations: 34.28 kB / 0.5118 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003485/0.3634, allocations: 140 kB / 0.512 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002543/0.3637, allocations: 224.2 kB / 0.5122 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002497/0.364, allocations: 247.3 kB / 0.5124 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00093/0.3649, allocations: 0.6026 MB / 0.513 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3649, allocations: 1.188 kB / 0.513 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3649, allocations: 0 / 0.513 GB, free: 1.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.3649, allocations: 0 / 0.513 GB, free: 1.656 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.00142/0.3664, allocations: 0.7777 MB / 0.5138 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3664, allocations: 14.97 kB / 0.5138 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.068e-05/0.3665, allocations: 86.11 kB / 0.5139 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000605/0.3671, allocations: 91.92 kB / 0.514 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006657/0.3678, allocations: 422.7 kB / 0.5144 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.3678, allocations: 34.11 kB / 0.5144 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.368, allocations: 48.97 kB / 0.5144 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008977/0.3689, allocations: 0.6633 MB / 0.5151 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.3689, allocations: 2.938 kB / 0.5151 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.369, allocations: 27.92 kB / 0.5151 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.3691, allocations: 47.84 kB / 0.5152 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007571/0.3699, allocations: 494.1 kB / 0.5156 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.3737, allocations: 3.15 MB / 0.5187 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.3742, allocations: 246.5 kB / 0.5189 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.3744, allocations: 121.2 kB / 0.5191 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.3744, allocations: 7.25 kB / 0.5191 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.3745, allocations: 40.66 kB / 0.5191 GB, free: 13.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.134e-06/0.3745, allocations: 5.375 kB / 0.5191 GB, free: 13.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001534/0.376, allocations: 0.8944 MB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3761, allocations: 81.41 kB / 0.5201 GB, free: 12.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003857/0.3765, allocations: 335.9 kB / 0.5204 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.3765, allocations: 30.64 kB / 0.5204 GB, free: 12.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.3767, allocations: 298.5 kB / 0.5207 GB, free: 12.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.611e-05/0.3768, allocations: 96.19 kB / 0.5208 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.377, allocations: 89.59 kB / 0.5209 GB, free: 12.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3771, allocations: 350.5 kB / 0.5212 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.3773, allocations: 128.4 kB / 0.5213 GB, free: 11.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.3777, allocations: 324 kB / 0.5216 GB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.3783, allocations: 0.4941 MB / 0.5221 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3783, allocations: 1.938 kB / 0.5221 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00122/0.3796, allocations: 0.5958 MB / 0.5227 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3796, allocations: 7.25 kB / 0.5227 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006136/0.3802, allocations: 332.9 kB / 0.523 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004275/0.3807, allocations: 112 kB / 0.5231 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.381, allocations: 90.34 kB / 0.5232 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003059/0.384, allocations: 3.283 MB / 0.5264 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.3844, allocations: 20.48 kB / 0.5264 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.3844, allocations: 23.39 kB / 0.5265 GB, free: 7.637 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003175/0.3848, allocations: 214.9 kB / 0.5267 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.232e-05/0.3848, allocations: 35.08 kB / 0.5267 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005271/0.3854, allocations: 317.3 kB / 0.527 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3854, allocations: 10.67 kB / 0.527 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3854, allocations: 5.344 kB / 0.527 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3854, allocations: 1.5 kB / 0.527 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.3867, allocations: 0.8013 MB / 0.5278 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3867, allocations: 1.438 kB / 0.5278 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.3871, allocations: 70.16 kB / 0.5279 GB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.3871, allocations: 5.344 kB / 0.5279 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3871, allocations: 9.172 kB / 0.5279 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.3871, allocations: 2.531 kB / 0.5279 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3871, allocations: 1.906 kB / 0.5279 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006538/0.3878, allocations: 0.5038 MB / 0.5284 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.388, allocations: 134.1 kB / 0.5285 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.388, allocations: 8.141 kB / 0.5285 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.3882, allocations: 11.11 kB / 0.5285 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.851e-05/0.3882, allocations: 14 kB / 0.5285 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.3883, allocations: 10.52 kB / 0.5286 GB, free: 6.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002384/0.3885, allocations: 221.5 kB / 0.5288 GB, free: 6.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3885, allocations: 1.938 kB / 0.5288 GB, free: 6.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005687/0.3891, allocations: 97.47 kB / 0.5289 GB, free: 6.234 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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.0009369/0.39, allocations: 1.058 MB / 0.5299 GB, free: 5.398 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.3911, allocations: 0.5939 MB / 0.5305 GB, free: 5.043 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.3911, allocations: 5.094 kB / 0.5305 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.3913, allocations: 122.2 kB / 0.5306 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005499/0.3919, allocations: 71.78 kB / 0.5307 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/0.398, allocations: 4.057 MB / 0.5346 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000587/0.3986, allocations: 0.8784 MB / 0.5355 GB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003747/0.399, allocations: 112 kB / 0.5356 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/0.3993, allocations: 146.7 kB / 0.5357 GB, free: 1.41 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3993, allocations: 0 / 0.5357 GB, free: 1.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.4317, allocations: 7.633 MB / 0.5432 GB, free: 13.99 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.58, allocations: 1.25 kB / 0.5432 GB, free: 13.99 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_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_ImpedanceYD.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches