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.001698/0.001698, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001963/0.001963, allocations: 193.4 kB / 18 MB, free: 5.172 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.484/1.484, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2346/0.2346, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 63.91 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3485, allocations: 58.07 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.005071/0.3536, allocations: 4.577 MB / 0.5081 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001969/0.3556, allocations: 1.463 MB / 0.5095 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.3558, allocations: 16.66 kB / 0.5095 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000959/0.3568, allocations: 379.2 kB / 0.5099 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004843/0.3573, allocations: 232.1 kB / 0.5101 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006328/0.3579, allocations: 253.1 kB / 0.5104 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006165/0.3585, allocations: 0.5631 MB / 0.5109 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004683/0.359, allocations: 332.2 kB / 0.5112 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000323/0.3594, allocations: 252.8 kB / 0.5115 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004846/0.3599, allocations: 319.6 kB / 0.5118 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.868e-05/0.3599, allocations: 35.09 kB / 0.5118 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003492/0.3603, allocations: 138 kB / 0.5119 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002637/0.3606, allocations: 229.5 kB / 0.5122 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.3608, allocations: 249.9 kB / 0.5124 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007207/0.3615, allocations: 0.5973 MB / 0.513 GB, free: 1.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3615, allocations: 1.312 kB / 0.513 GB, free: 1.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3615, allocations: 0 / 0.513 GB, free: 1.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.3616, allocations: 0 / 0.513 GB, free: 1.754 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.001227/0.3628, allocations: 0.7852 MB / 0.5138 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3628, allocations: 9.25 kB / 0.5138 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.202e-05/0.3629, allocations: 87.75 kB / 0.5139 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005748/0.3635, allocations: 103.7 kB / 0.5139 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005914/0.3641, allocations: 418.8 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.3642, allocations: 30.47 kB / 0.5144 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.3643, allocations: 55.03 kB / 0.5144 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008492/0.3652, allocations: 0.648 MB / 0.5151 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.3652, allocations: 10.03 kB / 0.5151 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/0.3652, allocations: 16.88 kB / 0.5151 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.3654, allocations: 34.25 kB / 0.5151 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007154/0.3661, allocations: 483.9 kB / 0.5156 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004095/0.3702, allocations: 3.013 MB / 0.5185 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.3705, allocations: 182.5 kB / 0.5187 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.3707, allocations: 105.7 kB / 0.5188 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.3708, allocations: 8.031 kB / 0.5188 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.3708, allocations: 41.53 kB / 0.5188 GB, free: 13.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.665e-06/0.3708, allocations: 0 / 0.5188 GB, free: 13.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=21): time 0.001572/0.3724, allocations: 0.8475 MB / 0.5197 GB, free: 13.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/0.3725, allocations: 80.94 kB / 0.5198 GB, free: 12.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004142/0.3729, allocations: 350 kB / 0.5201 GB, free: 12.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.3729, allocations: 30.77 kB / 0.5201 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.3732, allocations: 311.6 kB / 0.5204 GB, free: 12.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.746e-05/0.3733, allocations: 81.98 kB / 0.5205 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.3735, allocations: 85.45 kB / 0.5206 GB, free: 12.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3736, allocations: 342.3 kB / 0.5209 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.3739, allocations: 129.4 kB / 0.521 GB, free: 12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.3743, allocations: 333 kB / 0.5213 GB, free: 11.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000675/0.375, allocations: 0.4988 MB / 0.5218 GB, free: 11.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.375, allocations: 5.125 kB / 0.5218 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001078/0.3761, allocations: 0.5516 MB / 0.5224 GB, free: 11.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3761, allocations: 9.062 kB / 0.5224 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005624/0.3767, allocations: 275.3 kB / 0.5226 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003797/0.3771, allocations: 85.7 kB / 0.5227 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/0.3775, allocations: 100.4 kB / 0.5228 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.3793, allocations: 1.73 MB / 0.5245 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.3796, allocations: 17.25 kB / 0.5245 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.3796, allocations: 22.77 kB / 0.5245 GB, free: 9.391 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.0002939/0.3799, allocations: 219.7 kB / 0.5248 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.38, allocations: 29.62 kB / 0.5248 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005264/0.3805, allocations: 297 kB / 0.5251 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3805, allocations: 3.219 kB / 0.5251 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.3805, allocations: 1.219 kB / 0.5251 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3805, allocations: 1.078 kB / 0.5251 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.3819, allocations: 0.7962 MB / 0.5259 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3819, allocations: 1.984 kB / 0.5259 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.3822, allocations: 57.33 kB / 0.5259 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3823, allocations: 2.375 kB / 0.5259 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.3823, allocations: 8.844 kB / 0.5259 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3823, allocations: 2.047 kB / 0.5259 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3823, allocations: 5.344 kB / 0.5259 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000654/0.383, allocations: 481.2 kB / 0.5264 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.3831, allocations: 108.6 kB / 0.5265 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.3831, allocations: 11.89 kB / 0.5265 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.3833, allocations: 9.484 kB / 0.5265 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.3834, allocations: 13.27 kB / 0.5265 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.3834, allocations: 15.31 kB / 0.5265 GB, free: 8.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.3836, allocations: 235.5 kB / 0.5268 GB, free: 8.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3836, allocations: 0 / 0.5268 GB, free: 8.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005176/0.3842, allocations: 96.31 kB / 0.5269 GB, free: 8.023 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.0009497/0.3851, allocations: 1.011 MB / 0.5278 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007603/0.3859, allocations: 445.5 kB / 0.5283 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3859, allocations: 64 / 0.5283 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.3861, allocations: 118.6 kB / 0.5284 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.3866, allocations: 75.48 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.00605/0.3926, allocations: 3.998 MB / 0.5324 GB, free: 4.211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007224/0.3934, allocations: 0.8613 MB / 0.5332 GB, free: 3.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003385/0.3938, allocations: 117.8 kB / 0.5333 GB, free: 3.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/0.394, allocations: 151.5 kB / 0.5335 GB, free: 3.367 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.394, allocations: 0 / 0.5335 GB, free: 3.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03587/0.4299, allocations: 7.415 MB / 0.5407 GB, free: 140 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.81, allocations: 12.3 kB / 0.5407 GB, free: 132 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