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.001254/0.001254, allocations: 109.6 kB / 17.06 MB, free: 6.004 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.001217/0.001217, allocations: 192 kB / 18 MB, free: 5.09 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.421/1.421, 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.1865/0.1865, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 71.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3123, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004405/0.3168, allocations: 3.912 MB / 0.5075 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.318, allocations: 0.8721 MB / 0.5083 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.3181, allocations: 10.59 kB / 0.5083 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.3183, allocations: 41.09 kB / 0.5084 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003957/0.3187, allocations: 170.7 kB / 0.5085 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001696/0.3189, allocations: 86.34 kB / 0.5086 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.3193, allocations: 375.9 kB / 0.509 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.3194, allocations: 94.17 kB / 0.509 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.3196, allocations: 157.3 kB / 0.5092 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.3199, allocations: 167.7 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.32, allocations: 16.59 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.598e-05/0.32, allocations: 16.66 kB / 0.5094 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.893e-05/0.3201, allocations: 76.05 kB / 0.5095 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.3202, allocations: 135.2 kB / 0.5096 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.3205, allocations: 256.4 kB / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3205, allocations: 0 / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3205, allocations: 0 / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.3205, allocations: 1.281 kB / 0.5098 GB, free: 3.402 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.0007174/0.3213, allocations: 0.5623 MB / 0.5104 GB, free: 2.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.3213, allocations: 13.72 kB / 0.5104 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.353e-05/0.3214, allocations: 58.36 kB / 0.5105 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.3214, allocations: 30.38 kB / 0.5105 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.3218, allocations: 328.5 kB / 0.5108 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.3218, allocations: 16.38 kB / 0.5108 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.3219, allocations: 18.27 kB / 0.5108 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.3222, allocations: 270.3 kB / 0.5111 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3222, allocations: 5 kB / 0.5111 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.3222, allocations: 11.02 kB / 0.5111 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3223, allocations: 4.75 kB / 0.5111 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.3225, allocations: 159.4 kB / 0.5113 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009499/0.3235, allocations: 1.184 MB / 0.5124 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.3236, allocations: 74.52 kB / 0.5125 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.3236, allocations: 31.2 kB / 0.5125 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.3236, allocations: 2.188 kB / 0.5125 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.371e-05/0.3237, allocations: 32.09 kB / 0.5125 GB, free: 1.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3237, allocations: 4 kB / 0.5126 GB, free: 1.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.000564/0.3242, allocations: 414.2 kB / 0.5129 GB, free: 0.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.3243, allocations: 79.08 kB / 0.513 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.3245, allocations: 252.2 kB / 0.5133 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-06/0.3245, allocations: 29.64 kB / 0.5133 GB, free: 0.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.3246, allocations: 192.6 kB / 0.5135 GB, free: 388 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.3246, allocations: 39.47 kB / 0.5135 GB, free: 356 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.768e-05/0.3247, allocations: 43.03 kB / 0.5136 GB, free: 324 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.3247, allocations: 329.7 kB / 0.5139 GB, free: 16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.048e-05/0.3248, allocations: 26.44 kB / 0.5139 GB, free: 15.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.3249, allocations: 122.7 kB / 0.514 GB, free: 15.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.3251, allocations: 164.1 kB / 0.5142 GB, free: 15.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3251, allocations: 1.062 kB / 0.5142 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002711/0.3254, allocations: 187.5 kB / 0.5143 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.3254, allocations: 14.69 kB / 0.5144 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3254, allocations: 3.906 kB / 0.5144 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3255, allocations: 4.5 kB / 0.5144 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.3256, allocations: 40.89 kB / 0.5144 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3256, allocations: 8.844 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.751e-05/0.3257, allocations: 8.688 kB / 0.5144 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.3258, allocations: 9.484 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.0001378/0.3259, allocations: 146.8 kB / 0.5146 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.326, allocations: 25.52 kB / 0.5146 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.3261, allocations: 102.7 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3262, allocations: 5.281 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3262, allocations: 1.188 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3262, allocations: 1.594 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004997/0.3267, allocations: 422.9 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3267, allocations: 5.188 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.887e-05/0.3268, allocations: 15.36 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3268, allocations: 1.094 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.3268, allocations: 9.922 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.3268, allocations: 1.125 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3268, allocations: 1.188 kB / 0.5151 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.3271, allocations: 228.8 kB / 0.5154 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.3272, allocations: 96.05 kB / 0.5154 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.3272, allocations: 1.25 kB / 0.5154 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.695e-05/0.3273, allocations: 9.922 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.243e-05/0.3273, allocations: 5.406 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3274, allocations: 7.281 kB / 0.5155 GB, free: 14.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.3275, allocations: 174.3 kB / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3275, allocations: 0 / 0.5156 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.3279, allocations: 39.75 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.0005539/0.3284, allocations: 0.7665 MB / 0.5164 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.3286, allocations: 86.12 kB / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3286, allocations: 192 / 0.5165 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.053e-05/0.3287, allocations: 34.94 kB / 0.5165 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3292, allocations: 55.02 kB / 0.5166 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.3318, allocations: 2.296 MB / 0.5188 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.3323, allocations: 0.7651 MB / 0.5196 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.3324, allocations: 30.06 kB / 0.5196 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3325, allocations: 70.27 kB / 0.5197 GB, free: 11.18 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3325, allocations: 0.5938 kB / 0.5197 GB, free: 11.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.3616, allocations: 4.167 MB / 0.5237 GB, free: 10.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.541, allocations: 9.172 kB / 0.5238 GB, free: 10.6 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