Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001271/0.001271, allocations: 115.5 kB / 17.06 MB, free: 5.988 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.00149/0.00149, allocations: 196 kB / 18.01 MB, free: 5.062 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.361/1.361, 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.1787/0.1787, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.91 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3018, allocations: 58.06 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.004943/0.3068, allocations: 4.343 MB / 0.5079 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3081, allocations: 0.9349 MB / 0.5088 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.3083, allocations: 11.25 kB / 0.5088 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.3085, allocations: 57.56 kB / 0.5088 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005368/0.309, allocations: 243.5 kB / 0.5091 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.3093, allocations: 101.2 kB / 0.5092 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.3097, allocations: 0.494 MB / 0.5097 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.31, allocations: 151.1 kB / 0.5098 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000281/0.3103, allocations: 226.5 kB / 0.51 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000389/0.3107, allocations: 272.3 kB / 0.5103 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.574e-05/0.3107, allocations: 23.47 kB / 0.5103 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.914e-05/0.3108, allocations: 24.41 kB / 0.5103 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.3109, allocations: 142.7 kB / 0.5105 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.3111, allocations: 177.3 kB / 0.5106 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.3115, allocations: 374.7 kB / 0.511 GB, free: 2.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3115, allocations: 0 / 0.511 GB, free: 2.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3115, allocations: 4 kB / 0.511 GB, free: 2.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3115, allocations: 1.531 kB / 0.511 GB, free: 2.84 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009812/0.3125, allocations: 0.664 MB / 0.5116 GB, free: 2.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3126, allocations: 14.05 kB / 0.5117 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.967e-05/0.3126, allocations: 62.12 kB / 0.5117 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.971e-05/0.3127, allocations: 42.39 kB / 0.5118 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005155/0.3132, allocations: 383.8 kB / 0.5121 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.3133, allocations: 22.38 kB / 0.5121 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.3133, allocations: 29.33 kB / 0.5122 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.3138, allocations: 349.5 kB / 0.5125 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3138, allocations: 5.438 kB / 0.5125 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.693e-05/0.3139, allocations: 14.42 kB / 0.5125 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.314, allocations: 25.91 kB / 0.5125 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.3144, allocations: 241.8 kB / 0.5128 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.3158, allocations: 1.365 MB / 0.5141 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.3161, allocations: 171.8 kB / 0.5143 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.3163, allocations: 92.22 kB / 0.5144 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.3164, allocations: 1.875 kB / 0.5144 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.3164, allocations: 46.06 kB / 0.5144 GB, free: 428 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.3164, allocations: 0 / 0.5144 GB, free: 428 kB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001323/0.3177, allocations: 0.7757 MB / 0.5152 GB, free: 15.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.3178, allocations: 80.05 kB / 0.5152 GB, free: 15.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.3181, allocations: 301.1 kB / 0.5155 GB, free: 15.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.3181, allocations: 30.5 kB / 0.5156 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.3183, allocations: 224.3 kB / 0.5158 GB, free: 15.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.291e-05/0.3183, allocations: 60.08 kB / 0.5158 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.137e-05/0.3184, allocations: 52.42 kB / 0.5159 GB, free: 15.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3186, allocations: 339.8 kB / 0.5162 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.3187, allocations: 70.53 kB / 0.5163 GB, free: 14.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.3189, allocations: 170.4 kB / 0.5164 GB, free: 14.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/0.3192, allocations: 256.1 kB / 0.5167 GB, free: 14.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3192, allocations: 1.438 kB / 0.5167 GB, free: 14.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005734/0.3198, allocations: 317.3 kB / 0.517 GB, free: 14.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3198, allocations: 11.62 kB / 0.517 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3198, allocations: 3.156 kB / 0.517 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002362/0.3201, allocations: 51.89 kB / 0.517 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.3203, allocations: 50.78 kB / 0.5171 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.3218, allocations: 1.604 MB / 0.5187 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.322, allocations: 11.52 kB / 0.5187 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.322, allocations: 10.39 kB / 0.5187 GB, free: 12.97 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 (28): * Single equations (assignments): 27 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002088/0.3223, allocations: 175.4 kB / 0.5188 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.3223, allocations: 24.45 kB / 0.5189 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004791/0.3228, allocations: 244.5 kB / 0.5191 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3228, allocations: 3.516 kB / 0.5191 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3228, allocations: 1.094 kB / 0.5191 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3229, allocations: 2.281 kB / 0.5191 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009432/0.3238, allocations: 0.6407 MB / 0.5197 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3238, allocations: 1.875 kB / 0.5197 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3239, allocations: 21.58 kB / 0.5198 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.3241, allocations: 62.08 kB / 0.5198 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.3242, allocations: 5.359 kB / 0.5198 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.3256, allocations: 1.605 MB / 0.5214 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.3257, allocations: 8.875 kB / 0.5214 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006879/0.3264, allocations: 405.8 kB / 0.5218 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.492e-05/0.3265, allocations: 103.2 kB / 0.5219 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.3265, allocations: 8.078 kB / 0.5219 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3267, allocations: 9.203 kB / 0.5219 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.3267, allocations: 21.41 kB / 0.5219 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.3267, allocations: 4.875 kB / 0.5219 GB, free: 10.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002775/0.327, allocations: 213.2 kB / 0.5221 GB, free: 10.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.327, allocations: 0 / 0.5221 GB, free: 10.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004709/0.3275, allocations: 66.36 kB / 0.5222 GB, free: 10.26 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009525/0.3285, allocations: 0.9418 MB / 0.5231 GB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007149/0.3292, allocations: 313.6 kB / 0.5234 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3292, allocations: 0.9688 kB / 0.5234 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000404/0.3296, allocations: 207.3 kB / 0.5236 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005797/0.3302, allocations: 61.92 kB / 0.5237 GB, free: 9.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.3344, allocations: 3.057 MB / 0.5267 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.335, allocations: 0.8065 MB / 0.5274 GB, free: 6.324 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001778/0.3352, allocations: 43.86 kB / 0.5275 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.3353, allocations: 102.6 kB / 0.5276 GB, free: 6.242 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3353, allocations: 1.469 kB / 0.5276 GB, free: 6.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03791/0.3732, allocations: 6.08 MB / 0.5335 GB, free: 4.562 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.39/9.764, allocations: 4.094 kB / 0.5335 GB, free: 4.562 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_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_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches