Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001664/0.001664, 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.001758/0.001758, 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.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1754/0.1754, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3294, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.00471/0.3341, allocations: 3.912 MB / 0.5074 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.3355, allocations: 0.873 MB / 0.5083 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.3356, allocations: 10.5 kB / 0.5083 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.3358, allocations: 39.58 kB / 0.5083 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005341/0.3364, allocations: 180.7 kB / 0.5085 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.3366, allocations: 82.98 kB / 0.5086 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004702/0.3371, allocations: 384 kB / 0.509 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.3374, allocations: 84.7 kB / 0.509 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.3376, allocations: 162.6 kB / 0.5092 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.338, allocations: 175.6 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.243e-05/0.3381, allocations: 16.91 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.284e-05/0.3381, allocations: 17.09 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.3382, allocations: 75.72 kB / 0.5095 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.3384, allocations: 127.5 kB / 0.5096 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004052/0.3388, allocations: 260.4 kB / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3388, allocations: 0 / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3388, allocations: 1.375 kB / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.3388, allocations: 0 / 0.5098 GB, free: 3.406 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000929/0.3398, allocations: 0.5621 MB / 0.5104 GB, free: 2.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.3398, allocations: 14.03 kB / 0.5104 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.073e-05/0.3399, allocations: 61.47 kB / 0.5105 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.488e-05/0.34, allocations: 30.97 kB / 0.5105 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.3405, allocations: 329.7 kB / 0.5108 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3405, allocations: 12.03 kB / 0.5108 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.221e-05/0.3406, allocations: 21.22 kB / 0.5108 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.3409, allocations: 266.9 kB / 0.5111 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.341, allocations: 7.938 kB / 0.5111 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.341, allocations: 7.578 kB / 0.5111 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.341, allocations: 5.5 kB / 0.5111 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.3413, allocations: 163.5 kB / 0.5113 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.3424, allocations: 1.176 MB / 0.5124 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.3425, allocations: 82.56 kB / 0.5125 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.816e-05/0.3426, allocations: 30.66 kB / 0.5125 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.3426, allocations: 1.984 kB / 0.5125 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.3426, allocations: 31.66 kB / 0.5126 GB, free: 1.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.3426, allocations: 1.062 kB / 0.5126 GB, free: 1.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007152/0.3433, allocations: 422.7 kB / 0.513 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.3434, allocations: 82.56 kB / 0.513 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.3437, allocations: 252.4 kB / 0.5133 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.3437, allocations: 26.83 kB / 0.5133 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3438, allocations: 192.2 kB / 0.5135 GB, free: 384 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.3438, allocations: 27.06 kB / 0.5135 GB, free: 364 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.3439, allocations: 50.28 kB / 0.5136 GB, free: 324 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.344, allocations: 330.8 kB / 0.5139 GB, free: 16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.041e-05/0.3441, allocations: 25.64 kB / 0.5139 GB, free: 15.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.3442, allocations: 126.7 kB / 0.514 GB, free: 15.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.3445, allocations: 164.9 kB / 0.5142 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3445, allocations: 1.344 kB / 0.5142 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003062/0.3448, allocations: 181.7 kB / 0.5144 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.3448, allocations: 12.83 kB / 0.5144 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3448, allocations: 3.281 kB / 0.5144 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3448, allocations: 8.438 kB / 0.5144 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.345, allocations: 44.42 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.345, allocations: 9.219 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.592e-05/0.3451, allocations: 3.656 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.3451, allocations: 13 kB / 0.5144 GB, free: 15.57 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 (22): * Single equations (assignments): 22 * 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.0001239/0.3453, allocations: 147.8 kB / 0.5146 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/0.3453, allocations: 25.05 kB / 0.5146 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001683/0.3455, allocations: 103.7 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3455, allocations: 5.219 kB / 0.5147 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3455, allocations: 0.9688 kB / 0.5147 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3455, allocations: 0.6094 kB / 0.5147 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.346, allocations: 422.8 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.346, allocations: 0.9062 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.18e-05/0.3461, allocations: 16.19 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3461, allocations: 1.062 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.3461, allocations: 2.828 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3461, allocations: 5.094 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3462, allocations: 1.094 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002506/0.3464, allocations: 231.8 kB / 0.5154 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.38e-05/0.3465, allocations: 96.2 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.3465, allocations: 2.297 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.3466, allocations: 1.156 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.938e-05/0.3466, allocations: 17.58 kB / 0.5155 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.3467, allocations: 6.547 kB / 0.5155 GB, free: 14.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001675/0.3468, allocations: 170.1 kB / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3468, allocations: 0 / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.3471, allocations: 40.39 kB / 0.5157 GB, free: 14.56 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 (9): * Single equations (assignments): 8 * 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.0005367/0.3477, allocations: 0.7653 MB / 0.5164 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001945/0.3479, allocations: 86.7 kB / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3479, allocations: 0.9375 kB / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.406e-05/0.348, allocations: 28.02 kB / 0.5165 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/0.3485, allocations: 69.08 kB / 0.5166 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.3512, allocations: 2.294 MB / 0.5188 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3516, allocations: 0.7619 MB / 0.5196 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.3518, allocations: 35.11 kB / 0.5196 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3519, allocations: 73.94 kB / 0.5197 GB, free: 11.17 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3519, allocations: 0.6875 kB / 0.5197 GB, free: 11.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.3744, allocations: 4.163 MB / 0.5238 GB, free: 10.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.573/7.948, allocations: 9.109 kB / 0.5238 GB, free: 10.59 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_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_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches