Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001528/0.001528, allocations: 109 kB / 17.06 MB, free: 6.02 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.001711/0.001711, allocations: 191 kB / 18 MB, free: 5.102 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.427/1.427, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1953/0.1953, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.394, allocations: 58.06 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004962/0.399, allocations: 4.19 MB / 0.5077 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.4005, allocations: 0.9446 MB / 0.5086 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.4007, allocations: 16.66 kB / 0.5087 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.4009, allocations: 52.03 kB / 0.5087 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005422/0.4015, allocations: 198.7 kB / 0.5089 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.4018, allocations: 109.7 kB / 0.509 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005106/0.4023, allocations: 475.9 kB / 0.5095 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.4026, allocations: 144.2 kB / 0.5096 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.4029, allocations: 218.4 kB / 0.5098 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003992/0.4033, allocations: 249.6 kB / 0.51 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.212e-05/0.4034, allocations: 26.47 kB / 0.5101 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.12e-05/0.4035, allocations: 27.72 kB / 0.5101 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.4036, allocations: 127.9 kB / 0.5102 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.4038, allocations: 179.8 kB / 0.5104 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004602/0.4043, allocations: 381.5 kB / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.4043, allocations: 1.781 kB / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4043, allocations: 0 / 0.5107 GB, free: 2.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.4043, allocations: 0 / 0.5107 GB, free: 2.863 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001245/0.4056, allocations: 0.7065 MB / 0.5114 GB, free: 2.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.4056, allocations: 12.64 kB / 0.5114 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.902e-05/0.4057, allocations: 62.34 kB / 0.5115 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.13e-05/0.4058, allocations: 39.97 kB / 0.5115 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006366/0.4064, allocations: 408.7 kB / 0.5119 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.4064, allocations: 18.72 kB / 0.512 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.4065, allocations: 29.28 kB / 0.512 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.4071, allocations: 358.5 kB / 0.5123 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4071, allocations: 1.094 kB / 0.5123 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.4071, allocations: 11.38 kB / 0.5123 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.4071, allocations: 10.78 kB / 0.5123 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004745/0.4076, allocations: 256.5 kB / 0.5126 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.4097, allocations: 1.446 MB / 0.514 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/0.41, allocations: 168.8 kB / 0.5142 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.4102, allocations: 81.02 kB / 0.5142 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.4102, allocations: 2.375 kB / 0.5142 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.4103, allocations: 36.52 kB / 0.5143 GB, free: 368 kB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.904e-06/0.4103, allocations: 0 / 0.5143 GB, free: 368 kB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001502/0.4118, allocations: 0.6834 MB / 0.5149 GB, free: 15.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.4119, allocations: 83.19 kB / 0.515 GB, free: 15.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.4123, allocations: 300.2 kB / 0.5153 GB, free: 15.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.4124, allocations: 26.86 kB / 0.5153 GB, free: 15.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.4126, allocations: 221.5 kB / 0.5155 GB, free: 15.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.4127, allocations: 59.42 kB / 0.5156 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4128, allocations: 57.03 kB / 0.5157 GB, free: 15.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4129, allocations: 338.4 kB / 0.516 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.4131, allocations: 68.3 kB / 0.516 GB, free: 14.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.4133, allocations: 178.3 kB / 0.5162 GB, free: 14.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.4136, allocations: 252.5 kB / 0.5165 GB, free: 14.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4136, allocations: 5.469 kB / 0.5165 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004312/0.4141, allocations: 288.4 kB / 0.5167 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.4141, allocations: 7 kB / 0.5167 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4141, allocations: 4.266 kB / 0.5167 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.4141, allocations: 5.938 kB / 0.5168 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.4144, allocations: 59.56 kB / 0.5168 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.4144, allocations: 5.375 kB / 0.5168 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.4146, allocations: 22.08 kB / 0.5168 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.729e-05/0.4146, allocations: 14.89 kB / 0.5169 GB, free: 14.49 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 (29): * Single equations (assignments): 29 * 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.0002222/0.4149, allocations: 166.7 kB / 0.517 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.39e-05/0.415, allocations: 30.19 kB / 0.517 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005314/0.4155, allocations: 235 kB / 0.5173 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.4155, allocations: 8.438 kB / 0.5173 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4155, allocations: 0 / 0.5173 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4155, allocations: 1.484 kB / 0.5173 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.4167, allocations: 0.6244 MB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.4167, allocations: 2.031 kB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.417, allocations: 36.94 kB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.417, allocations: 2.719 kB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.417, allocations: 2.25 kB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.417, allocations: 5.531 kB / 0.5179 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.849e-05/0.4171, allocations: 6 kB / 0.5179 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006451/0.4177, allocations: 425.8 kB / 0.5183 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.4179, allocations: 108 kB / 0.5184 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.006e-05/0.4179, allocations: 2.859 kB / 0.5184 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.4181, allocations: 10.7 kB / 0.5185 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.4181, allocations: 19.48 kB / 0.5185 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.4181, allocations: 12.12 kB / 0.5185 GB, free: 13.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002379/0.4184, allocations: 211.7 kB / 0.5187 GB, free: 13.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4184, allocations: 1.625 kB / 0.5187 GB, free: 13.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.4188, allocations: 59.83 kB / 0.5187 GB, free: 13.28 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0009128/0.4197, allocations: 0.959 MB / 0.5197 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.4201, allocations: 188.6 kB / 0.5199 GB, free: 12.44 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4201, allocations: 0.9375 kB / 0.5199 GB, free: 12.44 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.4203, allocations: 88.06 kB / 0.5199 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005554/0.4208, allocations: 77.52 kB / 0.52 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.4244, allocations: 2.904 MB / 0.5229 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.4248, allocations: 0.8073 MB / 0.5236 GB, free: 9.637 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.425, allocations: 55.28 kB / 0.5237 GB, free: 9.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.4252, allocations: 108.2 kB / 0.5238 GB, free: 9.547 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4252, allocations: 1.25 kB / 0.5238 GB, free: 9.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.4539, allocations: 5.993 MB / 0.5297 GB, free: 8.129 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/8.219, allocations: 16.92 kB / 0.5297 GB, free: 8.117 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches