Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",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.00104/0.00104, allocations: 112 kB / 17.06 MB, free: 5.996 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.001012/0.001012, allocations: 194.9 kB / 18.01 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.211/0.211, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 67.89 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3563, allocations: 58.05 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006816/0.3631, allocations: 5.177 MB / 0.5087 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003035/0.3662, allocations: 1.76 MB / 0.5104 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002724/0.3665, allocations: 14.59 kB / 0.5104 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.3677, allocations: 436 kB / 0.5108 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007262/0.3685, allocations: 313.8 kB / 0.5111 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.3696, allocations: 348.6 kB / 0.5115 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009518/0.3705, allocations: 0.7623 MB / 0.5122 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005989/0.3711, allocations: 382.3 kB / 0.5126 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005306/0.3717, allocations: 340.2 kB / 0.5129 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006937/0.3724, allocations: 454.9 kB / 0.5133 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.633e-05/0.3725, allocations: 58.38 kB / 0.5134 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004158/0.3729, allocations: 170.8 kB / 0.5135 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000338/0.3733, allocations: 289.2 kB / 0.5138 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003608/0.3736, allocations: 340.2 kB / 0.5141 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.3748, allocations: 0.8139 MB / 0.5149 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3748, allocations: 0 / 0.5149 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3748, allocations: 0 / 0.5149 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.3748, allocations: 0 / 0.5149 GB, free: 0.6133 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001883/0.3767, allocations: 0.9234 MB / 0.5158 GB, free: 15.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.3768, allocations: 18 kB / 0.5159 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.3769, allocations: 97.44 kB / 0.516 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.378, allocations: 142.2 kB / 0.5161 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.3792, allocations: 0.5358 MB / 0.5166 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.3793, allocations: 42.83 kB / 0.5167 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004152/0.3797, allocations: 130.6 kB / 0.5168 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.3814, allocations: 0.862 MB / 0.5176 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.3814, allocations: 6.094 kB / 0.5176 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.825e-05/0.3815, allocations: 17.83 kB / 0.5176 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004991/0.382, allocations: 75.78 kB / 0.5177 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.3831, allocations: 0.6224 MB / 0.5183 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004954/0.388, allocations: 3.778 MB / 0.522 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.3892, allocations: 0.5435 MB / 0.5225 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.3897, allocations: 317.3 kB / 0.5228 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.741e-05/0.3898, allocations: 18.53 kB / 0.5229 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.3898, allocations: 42.34 kB / 0.5229 GB, free: 11.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.885e-06/0.3899, allocations: 0 / 0.5229 GB, free: 11.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.00338/0.3932, allocations: 1.842 MB / 0.5247 GB, free: 10.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.3933, allocations: 87.27 kB / 0.5248 GB, free: 10.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005409/0.3939, allocations: 421.8 kB / 0.5252 GB, free: 10.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.373e-05/0.394, allocations: 32.45 kB / 0.5252 GB, free: 10.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/0.3942, allocations: 343.3 kB / 0.5255 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.3945, allocations: 210.2 kB / 0.5257 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002621/0.3947, allocations: 150.7 kB / 0.5259 GB, free: 10.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.3949, allocations: 373.2 kB / 0.5262 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/0.3956, allocations: 376.6 kB / 0.5266 GB, free: 9.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007872/0.3964, allocations: 0.599 MB / 0.5272 GB, free: 9.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.3978, allocations: 1.069 MB / 0.5282 GB, free: 8.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3979, allocations: 4.375 kB / 0.5282 GB, free: 8.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004925/0.4028, allocations: 2.008 MB / 0.5302 GB, free: 7.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.4029, allocations: 12.62 kB / 0.5302 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.483e-05/0.4029, allocations: 10.69 kB / 0.5302 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003285/0.4062, allocations: 0.959 MB / 0.5312 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/0.4068, allocations: 117.6 kB / 0.5313 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.4184, allocations: 8.196 MB / 0.5393 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006748/0.4191, allocations: 32.47 kB / 0.5393 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.585e-05/0.4192, allocations: 44.88 kB / 0.5393 GB, free: 2.078 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * 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,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004147/0.4196, allocations: 246.1 kB / 0.5396 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.4198, allocations: 51.05 kB / 0.5396 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.421, allocations: 0.7272 MB / 0.5403 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.421, allocations: 9.922 kB / 0.5404 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.421, allocations: 0 / 0.5404 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.421, allocations: 4.766 kB / 0.5404 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002623/0.4236, allocations: 1.525 MB / 0.5418 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.4236, allocations: 1.344 kB / 0.5418 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.4247, allocations: 185.7 kB / 0.542 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.4247, allocations: 7.984 kB / 0.542 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.461e-05/0.4248, allocations: 35.98 kB / 0.5421 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.4248, allocations: 0 / 0.5421 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4248, allocations: 4 kB / 0.5421 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.4262, allocations: 0.9976 MB / 0.543 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.4264, allocations: 128.8 kB / 0.5432 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4265, allocations: 27.98 kB / 0.5432 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.4268, allocations: 23.97 kB / 0.5432 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.4269, allocations: 36.39 kB / 0.5433 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.375e-05/0.427, allocations: 16 kB / 0.5433 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000296/0.4273, allocations: 283.1 kB / 0.5435 GB, free: 14.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4273, allocations: 0 / 0.5435 GB, free: 14.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009276/0.4282, allocations: 212 kB / 0.5437 GB, free: 14.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 (52): * Single equations (assignments): 51 * 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.001626/0.4298, allocations: 1.562 MB / 0.5453 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.4326, allocations: 1.485 MB / 0.5467 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4327, allocations: 4.062 kB / 0.5467 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004507/0.4331, allocations: 306.3 kB / 0.547 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.4339, allocations: 128.5 kB / 0.5471 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/0.4502, allocations: 9.743 MB / 0.5566 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006739/0.4509, allocations: 0.9843 MB / 0.5576 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005934/0.4515, allocations: 208.5 kB / 0.5578 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.4519, allocations: 231.4 kB / 0.558 GB, free: 15.5 MB / 430.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4519, allocations: 0 / 0.558 GB, free: 15.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.494, allocations: 17.5 MB / 0.5751 GB, free: 14.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.99, allocations: 6.109 kB / 0.5751 GB, free: 14.17 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches