Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",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.001641/0.00164, allocations: 112 kB / 17.06 MB, free: 5.973 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.001668/0.001668, 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.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1757/0.1757, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 64.05 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3727, allocations: 58.06 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.007304/0.3801, allocations: 3.426 MB / 0.507 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.3831, allocations: 1.452 MB / 0.5084 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.3833, allocations: 8.688 kB / 0.5084 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.3845, allocations: 244.8 kB / 0.5086 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.3856, allocations: 286.8 kB / 0.5089 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005943/0.3863, allocations: 115.2 kB / 0.509 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006183/0.3869, allocations: 342.5 kB / 0.5093 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004176/0.3873, allocations: 136.5 kB / 0.5095 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003401/0.3877, allocations: 151.3 kB / 0.5096 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003323/0.388, allocations: 153.9 kB / 0.5098 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.3881, allocations: 14.72 kB / 0.5098 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008301/0.3889, allocations: 307.9 kB / 0.5101 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.3891, allocations: 98.97 kB / 0.5102 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.3893, allocations: 103.7 kB / 0.5103 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007474/0.3901, allocations: 350 kB / 0.5106 GB, free: 2.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3901, allocations: 0 / 0.5106 GB, free: 2.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.3902, allocations: 5.781 kB / 0.5106 GB, free: 2.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.3902, allocations: 0 / 0.5106 GB, free: 2.984 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.0008927/0.3911, allocations: 0.5062 MB / 0.5111 GB, free: 2.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.3911, allocations: 14.34 kB / 0.5111 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.798e-05/0.3912, allocations: 66.05 kB / 0.5112 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.3929, allocations: 91.25 kB / 0.5113 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.3935, allocations: 261.6 kB / 0.5115 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.3935, allocations: 12.7 kB / 0.5115 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.629e-05/0.3936, allocations: 28.2 kB / 0.5115 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008677/0.3945, allocations: 312.1 kB / 0.5118 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.3945, allocations: 1.125 kB / 0.5118 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.3946, allocations: 10.42 kB / 0.5119 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.546e-05/0.3947, allocations: 18.91 kB / 0.5119 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008212/0.3955, allocations: 287.6 kB / 0.5121 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.3981, allocations: 1.303 MB / 0.5134 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.3992, allocations: 203.6 kB / 0.5136 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.3994, allocations: 60.39 kB / 0.5137 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.3994, allocations: 2.953 kB / 0.5137 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.3995, allocations: 40.25 kB / 0.5137 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 3.446e-06/0.3995, allocations: 0 / 0.5137 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001464/0.401, allocations: 435.3 kB / 0.5141 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.401, allocations: 83.27 kB / 0.5142 GB, free: 404 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.4013, allocations: 194.2 kB / 0.5144 GB, free: 272 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.4014, allocations: 30.89 kB / 0.5144 GB, free: 236 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.4015, allocations: 166.7 kB / 0.5146 GB, free: 84 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.297e-05/0.4016, allocations: 53.08 kB / 0.5146 GB, free: 40 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.4017, allocations: 46.2 kB / 0.5147 GB, free: 8 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002886/0.402, allocations: 332.7 kB / 0.515 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.4022, allocations: 49.11 kB / 0.515 GB, free: 15.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.4026, allocations: 150.2 kB / 0.5152 GB, free: 15.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004992/0.4031, allocations: 227.9 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4031, allocations: 1.25 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008451/0.404, allocations: 266.4 kB / 0.5157 GB, free: 15.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.4041, allocations: 9.594 kB / 0.5157 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.4041, allocations: 3.688 kB / 0.5157 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003754/0.4045, allocations: 37.97 kB / 0.5157 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.4047, allocations: 41.41 kB / 0.5157 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.4063, allocations: 1.449 MB / 0.5172 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.4064, allocations: 9.703 kB / 0.5172 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.4065, allocations: 13.39 kB / 0.5172 GB, free: 13.75 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): 23 * 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.0001712/0.4066, allocations: 157.3 kB / 0.5173 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.527e-05/0.4067, allocations: 19.31 kB / 0.5173 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003928/0.4071, allocations: 193.5 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.4071, allocations: 2.281 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.4071, allocations: 4 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4071, allocations: 2.797 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008954/0.408, allocations: 0.5628 MB / 0.5181 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.408, allocations: 1.094 kB / 0.5181 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.871e-05/0.4081, allocations: 20.23 kB / 0.5181 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/0.4083, allocations: 39.66 kB / 0.5181 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.4083, allocations: 6.562 kB / 0.5182 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.4094, allocations: 1.42 MB / 0.5195 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.4095, allocations: 4.906 kB / 0.5195 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.4099, allocations: 299.1 kB / 0.5198 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.691e-05/0.4099, allocations: 91.95 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.41, allocations: 7.062 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4101, allocations: 3.625 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.4101, allocations: 25.94 kB / 0.52 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.4102, allocations: 5.094 kB / 0.52 GB, free: 11.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.4103, allocations: 142.2 kB / 0.5201 GB, free: 11.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4103, allocations: 0 / 0.5201 GB, free: 11.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004071/0.4107, allocations: 52.84 kB / 0.5201 GB, free: 11.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (14): * 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: 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.0007128/0.4114, allocations: 0.8353 MB / 0.521 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004787/0.4119, allocations: 269.8 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.412, allocations: 0 / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.4122, allocations: 174.8 kB / 0.5214 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.4126, allocations: 33.69 kB / 0.5214 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002798/0.4154, allocations: 2.381 MB / 0.5237 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.4158, allocations: 0.7592 MB / 0.5245 GB, free: 7.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.4159, allocations: 43.92 kB / 0.5245 GB, free: 7.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.501e-05/0.416, allocations: 59.48 kB / 0.5246 GB, free: 7.48 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.416, allocations: 0 / 0.5246 GB, free: 7.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.443, allocations: 3.905 MB / 0.5284 GB, free: 6.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.619/10.06, allocations: 16.12 kB / 0.5284 GB, free: 6.883 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches