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.00165/0.00165, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.002123/0.002123, allocations: 192 kB / 18 MB, free: 5.098 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.424/1.424, 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.1827/0.1827, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 64.08 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3693, allocations: 58.06 MB / 0.5036 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004596/0.3739, allocations: 3.428 MB / 0.507 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.376, allocations: 1.444 MB / 0.5084 GB, free: 4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.3762, allocations: 9.469 kB / 0.5084 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009148/0.3771, allocations: 252.5 kB / 0.5086 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006435/0.3777, allocations: 278.7 kB / 0.5089 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003211/0.3781, allocations: 113.4 kB / 0.509 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004224/0.3785, allocations: 346.6 kB / 0.5093 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.3789, allocations: 137.4 kB / 0.5095 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.3791, allocations: 154.4 kB / 0.5096 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.3794, allocations: 152.3 kB / 0.5097 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.3794, allocations: 13.28 kB / 0.5098 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004956/0.3799, allocations: 315.9 kB / 0.5101 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.3801, allocations: 95 kB / 0.5102 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3802, allocations: 104.5 kB / 0.5103 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005686/0.3808, allocations: 340.3 kB / 0.5106 GB, free: 2.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.3808, allocations: 1 kB / 0.5106 GB, free: 2.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3808, allocations: 3.938 kB / 0.5106 GB, free: 2.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.3808, allocations: 0 / 0.5106 GB, free: 2.977 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.0007183/0.3815, allocations: 0.4993 MB / 0.5111 GB, free: 2.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.3816, allocations: 14.2 kB / 0.5111 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.489e-05/0.3817, allocations: 62.83 kB / 0.5111 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009617/0.3826, allocations: 91.11 kB / 0.5112 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.3829, allocations: 269.9 kB / 0.5115 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.383, allocations: 12.38 kB / 0.5115 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/0.383, allocations: 31.86 kB / 0.5115 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/0.3835, allocations: 311.6 kB / 0.5118 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.3836, allocations: 2 kB / 0.5118 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.3836, allocations: 6.156 kB / 0.5118 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.452e-05/0.3837, allocations: 18.47 kB / 0.5119 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000508/0.3842, allocations: 288.6 kB / 0.5121 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.3858, allocations: 1.293 MB / 0.5134 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.3864, allocations: 204.8 kB / 0.5136 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.468e-05/0.3865, allocations: 61.39 kB / 0.5136 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3865, allocations: 1.766 kB / 0.5136 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.3865, allocations: 45.61 kB / 0.5137 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.342e-06/0.3866, allocations: 0 / 0.5137 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009033/0.3875, allocations: 426 kB / 0.5141 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.3875, allocations: 80.06 kB / 0.5142 GB, free: 412 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3877, allocations: 206.1 kB / 0.5144 GB, free: 268 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.3877, allocations: 26.92 kB / 0.5144 GB, free: 236 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.3878, allocations: 161.7 kB / 0.5145 GB, free: 88 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.3878, allocations: 45.92 kB / 0.5146 GB, free: 52 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.874e-05/0.3879, allocations: 53.47 kB / 0.5146 GB, free: 12 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3881, allocations: 331.2 kB / 0.515 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.995e-05/0.3882, allocations: 49.8 kB / 0.515 GB, free: 15.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.3884, allocations: 151.7 kB / 0.5152 GB, free: 15.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.3887, allocations: 224.8 kB / 0.5154 GB, free: 15.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3887, allocations: 1.344 kB / 0.5154 GB, free: 15.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004875/0.3892, allocations: 272.7 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3892, allocations: 7.656 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.3892, allocations: 2.906 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000256/0.3895, allocations: 37.36 kB / 0.5157 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.3896, allocations: 41.69 kB / 0.5157 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.3909, allocations: 1.454 MB / 0.5171 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3911, allocations: 9.328 kB / 0.5171 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.3911, allocations: 13.23 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.0001541/0.3913, allocations: 153.2 kB / 0.5173 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.3913, allocations: 20.47 kB / 0.5173 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004143/0.3917, allocations: 192.6 kB / 0.5175 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3917, allocations: 6 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3917, allocations: 0.5938 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.3918, allocations: 2.688 kB / 0.5175 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009356/0.3927, allocations: 0.5548 MB / 0.5181 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.3927, allocations: 1.062 kB / 0.5181 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3928, allocations: 24.17 kB / 0.5181 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001541/0.393, allocations: 35.09 kB / 0.5181 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.393, allocations: 3.453 kB / 0.5181 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.3941, allocations: 1.419 MB / 0.5195 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3941, allocations: 1.75 kB / 0.5195 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004892/0.3946, allocations: 303.4 kB / 0.5198 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.3947, allocations: 92.94 kB / 0.5199 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.3947, allocations: 6.25 kB / 0.5199 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.3949, allocations: 7.141 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.3949, allocations: 26.34 kB / 0.5199 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.3949, allocations: 5.219 kB / 0.5199 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001556/0.3951, allocations: 142.6 kB / 0.5201 GB, free: 11.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3951, allocations: 0 / 0.5201 GB, free: 11.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.3955, allocations: 53.09 kB / 0.5201 GB, free: 11.19 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.0007512/0.3963, allocations: 0.8377 MB / 0.5209 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004774/0.3968, allocations: 274 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3968, allocations: 0 / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.397, allocations: 180.1 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.0003786/0.3974, allocations: 33.45 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.002888/0.4003, allocations: 2.371 MB / 0.5237 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.4007, allocations: 0.755 MB / 0.5244 GB, free: 7.551 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.4009, allocations: 44.88 kB / 0.5245 GB, free: 7.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.688e-05/0.401, allocations: 59.03 kB / 0.5245 GB, free: 7.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.401, allocations: 0 / 0.5245 GB, free: 7.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.4216, allocations: 3.938 MB / 0.5284 GB, free: 6.926 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.351/9.773, allocations: 9.469 kB / 0.5284 GB, free: 6.918 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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