Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001146/0.001146, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001191/0.001191, 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2373/0.2373, allocations: 38.05 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 67.88 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4518/0.4541, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.007664/0.4618, allocations: 4.062 MB / 0.5076 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.4641, allocations: 0.9121 MB / 0.5085 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.4644, allocations: 10.75 kB / 0.5085 GB, free: 3.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.4647, allocations: 46.75 kB / 0.5085 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006701/0.4655, allocations: 182.4 kB / 0.5087 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.4658, allocations: 83.66 kB / 0.5088 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005391/0.4663, allocations: 410 kB / 0.5092 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.4667, allocations: 123.2 kB / 0.5093 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.467, allocations: 176.6 kB / 0.5095 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.4674, allocations: 182.7 kB / 0.5096 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.381e-05/0.4675, allocations: 27.62 kB / 0.5097 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.324e-05/0.4676, allocations: 19.72 kB / 0.5097 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.4677, allocations: 86.97 kB / 0.5098 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.4679, allocations: 145.3 kB / 0.5099 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.4684, allocations: 286.9 kB / 0.5102 GB, free: 3.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.4684, allocations: 0.8438 kB / 0.5102 GB, free: 3.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4684, allocations: 1.688 kB / 0.5102 GB, free: 3.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.4684, allocations: 0 / 0.5102 GB, free: 3.152 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001114/0.4695, allocations: 0.6084 MB / 0.5108 GB, free: 2.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.4696, allocations: 13.58 kB / 0.5108 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.837e-05/0.4697, allocations: 55.69 kB / 0.5109 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.928e-05/0.4697, allocations: 35.95 kB / 0.5109 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.4703, allocations: 351.2 kB / 0.5112 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.4704, allocations: 21.38 kB / 0.5112 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.744e-05/0.4704, allocations: 17.69 kB / 0.5113 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004846/0.4709, allocations: 295 kB / 0.5115 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4709, allocations: 1.125 kB / 0.5115 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.471, allocations: 6.188 kB / 0.5115 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.471, allocations: 6.562 kB / 0.5116 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003316/0.4713, allocations: 182.6 kB / 0.5117 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.4727, allocations: 1.226 MB / 0.5129 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.473, allocations: 110.1 kB / 0.513 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.234e-05/0.4731, allocations: 43.88 kB / 0.5131 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.4732, allocations: 13.23 kB / 0.5131 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.4732, allocations: 32.78 kB / 0.5131 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.4732, allocations: 0 / 0.5131 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000859/0.4741, allocations: 490.3 kB / 0.5136 GB, free: 476 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.4741, allocations: 82.83 kB / 0.5137 GB, free: 376 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.4744, allocations: 256.1 kB / 0.5139 GB, free: 220 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.4744, allocations: 26.95 kB / 0.5139 GB, free: 188 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.4746, allocations: 203 kB / 0.5141 GB, free: 12 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.461e-05/0.4746, allocations: 41.14 kB / 0.5142 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-05/0.4747, allocations: 44.83 kB / 0.5142 GB, free: 15.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.4749, allocations: 335.2 kB / 0.5145 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.293e-05/0.475, allocations: 35.5 kB / 0.5146 GB, free: 15.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.4752, allocations: 135.2 kB / 0.5147 GB, free: 15.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002537/0.4755, allocations: 194 kB / 0.5149 GB, free: 15.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4755, allocations: 1.156 kB / 0.5149 GB, free: 15.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003614/0.4759, allocations: 213.8 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.4759, allocations: 7.938 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.4759, allocations: 2.531 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.476, allocations: 4.969 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.4761, allocations: 44.94 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.4762, allocations: 8.391 kB / 0.5151 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.4763, allocations: 12.78 kB / 0.5152 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.4763, allocations: 13.22 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.4765, allocations: 149.7 kB / 0.5153 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.765e-05/0.4766, allocations: 26.55 kB / 0.5153 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.4769, allocations: 130 kB / 0.5155 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4769, allocations: 6.188 kB / 0.5155 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.4769, allocations: 5.656 kB / 0.5155 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.4769, allocations: 0.6094 kB / 0.5155 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007363/0.4776, allocations: 481.6 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.4777, allocations: 4.938 kB / 0.5159 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.4778, allocations: 21.31 kB / 0.516 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/0.4778, allocations: 5.781 kB / 0.516 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.4778, allocations: 1.219 kB / 0.516 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.4779, allocations: 6.922 kB / 0.516 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4779, allocations: 0 / 0.516 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003823/0.4783, allocations: 279.5 kB / 0.5162 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.433e-05/0.4784, allocations: 97.81 kB / 0.5163 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.4784, allocations: 9.828 kB / 0.5163 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.699e-05/0.4785, allocations: 5.312 kB / 0.5163 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.4785, allocations: 12.09 kB / 0.5164 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.4786, allocations: 3.375 kB / 0.5164 GB, free: 14.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.4788, allocations: 175.8 kB / 0.5165 GB, free: 14.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4788, allocations: 4.688 kB / 0.5165 GB, free: 14.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003356/0.4791, allocations: 48.06 kB / 0.5166 GB, free: 14.09 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0007347/0.4799, allocations: 0.8068 MB / 0.5174 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002613/0.4801, allocations: 114.3 kB / 0.5175 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4802, allocations: 1.25 kB / 0.5175 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.4803, allocations: 46.41 kB / 0.5175 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.4808, allocations: 60.41 kB / 0.5176 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.4843, allocations: 2.45 MB / 0.52 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005116/0.4848, allocations: 0.7778 MB / 0.5207 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.485, allocations: 34.17 kB / 0.5208 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.4851, allocations: 80.62 kB / 0.5208 GB, free: 10.61 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.4851, allocations: 0 / 0.5208 GB, free: 10.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03113/0.5163, allocations: 4.612 MB / 0.5253 GB, free: 10.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/8.381, allocations: 5.625 kB / 0.5253 GB, free: 10.02 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches