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.001766/0.001766, allocations: 112 kB / 17.07 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.00196/0.00196, allocations: 197.3 kB / 18 MB, free: 5.074 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.46/1.46, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1924/0.1924, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 67.89 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3515, allocations: 58.06 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.006559/0.3581, allocations: 4.549 MB / 0.5081 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002769/0.3609, allocations: 1.565 MB / 0.5096 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003121/0.3613, allocations: 15.91 kB / 0.5096 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.3623, allocations: 285.9 kB / 0.5099 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009729/0.3633, allocations: 272.2 kB / 0.5101 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.3643, allocations: 250.6 kB / 0.5104 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009109/0.3652, allocations: 0.6175 MB / 0.511 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004677/0.3657, allocations: 254.8 kB / 0.5112 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004528/0.3662, allocations: 265.3 kB / 0.5115 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000588/0.3668, allocations: 325.8 kB / 0.5118 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.421e-05/0.3668, allocations: 33.78 kB / 0.5118 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.3672, allocations: 143.9 kB / 0.512 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.3675, allocations: 219.6 kB / 0.5122 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002352/0.3678, allocations: 251.3 kB / 0.5124 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008746/0.3686, allocations: 0.5988 MB / 0.513 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3686, allocations: 0 / 0.513 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.3687, allocations: 1.156 kB / 0.513 GB, free: 1.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.3687, allocations: 3.938 kB / 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001315/0.37, allocations: 0.7743 MB / 0.5138 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.37, allocations: 13.92 kB / 0.5138 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001042/0.3702, allocations: 91.23 kB / 0.5139 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006944/0.3709, allocations: 91.97 kB / 0.5139 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006749/0.3715, allocations: 421.4 kB / 0.5143 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.3716, allocations: 35.08 kB / 0.5144 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.3718, allocations: 52.94 kB / 0.5144 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.3729, allocations: 0.667 MB / 0.5151 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.373, allocations: 5.344 kB / 0.5151 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.877e-05/0.373, allocations: 17.72 kB / 0.5151 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/0.3732, allocations: 45.83 kB / 0.5152 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009049/0.3741, allocations: 494.2 kB / 0.5156 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004699/0.3788, allocations: 3.158 MB / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.3794, allocations: 246.8 kB / 0.5189 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.3797, allocations: 119.4 kB / 0.5191 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.3797, allocations: 4.453 kB / 0.5191 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.3798, allocations: 40.48 kB / 0.5191 GB, free: 13.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.795e-06/0.3798, allocations: 5.094 kB / 0.5191 GB, free: 13.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.002024/0.3818, allocations: 0.8979 MB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.3819, allocations: 80.73 kB / 0.5201 GB, free: 12.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004825/0.3824, allocations: 330.6 kB / 0.5204 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.3824, allocations: 35.03 kB / 0.5204 GB, free: 12.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000323/0.3827, allocations: 300.2 kB / 0.5207 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.3829, allocations: 94.47 kB / 0.5208 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.3831, allocations: 91.59 kB / 0.5209 GB, free: 12.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002633/0.3834, allocations: 349.5 kB / 0.5212 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.3836, allocations: 135.5 kB / 0.5213 GB, free: 11.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.3841, allocations: 316.5 kB / 0.5216 GB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/0.385, allocations: 0.4902 MB / 0.5221 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3851, allocations: 2.125 kB / 0.5221 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001608/0.3867, allocations: 0.5962 MB / 0.5227 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.3867, allocations: 11.41 kB / 0.5227 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007152/0.3874, allocations: 328.3 kB / 0.523 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004897/0.3879, allocations: 112.3 kB / 0.5231 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.3883, allocations: 90.41 kB / 0.5232 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003485/0.3918, allocations: 3.283 MB / 0.5264 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.3921, allocations: 20.75 kB / 0.5264 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.3921, allocations: 25.95 kB / 0.5265 GB, free: 7.633 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.000351/0.3925, allocations: 208.3 kB / 0.5267 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.3926, allocations: 36.16 kB / 0.5267 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006441/0.3932, allocations: 317.1 kB / 0.527 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3933, allocations: 10.39 kB / 0.527 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3933, allocations: 5.156 kB / 0.527 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.3933, allocations: 1.688 kB / 0.527 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.3946, allocations: 0.8006 MB / 0.5278 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3947, allocations: 1.672 kB / 0.5278 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003207/0.395, allocations: 66.45 kB / 0.5279 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.395, allocations: 10.72 kB / 0.5279 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.395, allocations: 7.641 kB / 0.5279 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.395, allocations: 2.531 kB / 0.5279 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.395, allocations: 5.812 kB / 0.5279 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006998/0.3957, allocations: 0.5041 MB / 0.5284 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.3959, allocations: 133.2 kB / 0.5285 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.396, allocations: 9.344 kB / 0.5285 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.3961, allocations: 10.38 kB / 0.5285 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.016e-05/0.3962, allocations: 13.78 kB / 0.5285 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.3962, allocations: 11.34 kB / 0.5286 GB, free: 6.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002655/0.3965, allocations: 221 kB / 0.5288 GB, free: 6.242 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3965, allocations: 0.7812 kB / 0.5288 GB, free: 6.242 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005101/0.397, allocations: 99.44 kB / 0.5289 GB, free: 6.23 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.001078/0.3981, allocations: 1.057 MB / 0.5299 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.3991, allocations: 0.5892 MB / 0.5305 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3991, allocations: 0 / 0.5305 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.3994, allocations: 120.9 kB / 0.5306 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.3999, allocations: 70.05 kB / 0.5306 GB, free: 4.984 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00592/0.4058, allocations: 4.069 MB / 0.5346 GB, free: 2.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005869/0.4064, allocations: 0.8743 MB / 0.5355 GB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003204/0.4068, allocations: 111.2 kB / 0.5356 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.407, allocations: 149.7 kB / 0.5357 GB, free: 1.406 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.407, allocations: 1.625 kB / 0.5357 GB, free: 1.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.4448, allocations: 7.623 MB / 0.5432 GB, free: 14.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.84, allocations: 7.859 kB / 0.5432 GB, free: 14.01 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