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.001317/0.001317, allocations: 108 kB / 17.06 MB, free: 6.02 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.001878/0.001878, allocations: 189.4 kB / 18 MB, free: 5.102 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.439/1.439, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1905/0.1905, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3046, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.003826/0.3085, allocations: 3.428 MB / 0.507 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.31, allocations: 1.444 MB / 0.5084 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.3102, allocations: 9.125 kB / 0.5084 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007306/0.3109, allocations: 253.5 kB / 0.5086 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005371/0.3115, allocations: 278.4 kB / 0.5089 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.3118, allocations: 113.7 kB / 0.509 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.3122, allocations: 350.4 kB / 0.5093 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.3125, allocations: 135.1 kB / 0.5095 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.3127, allocations: 145.7 kB / 0.5096 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.3129, allocations: 146.9 kB / 0.5097 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.313, allocations: 13.91 kB / 0.5098 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000478/0.3134, allocations: 313 kB / 0.5101 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3136, allocations: 99.22 kB / 0.5101 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.3137, allocations: 106.8 kB / 0.5103 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.3141, allocations: 346.2 kB / 0.5106 GB, free: 3.023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3142, allocations: 0 / 0.5106 GB, free: 3.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3142, allocations: 5.344 kB / 0.5106 GB, free: 3.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.3142, allocations: 0 / 0.5106 GB, free: 3.02 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.0006018/0.3148, allocations: 0.5145 MB / 0.5111 GB, free: 2.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3148, allocations: 9.062 kB / 0.5111 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.3149, allocations: 59.75 kB / 0.5112 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008731/0.3158, allocations: 90.86 kB / 0.5112 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.3161, allocations: 269.6 kB / 0.5115 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.3161, allocations: 15.81 kB / 0.5115 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.25e-05/0.3161, allocations: 19.11 kB / 0.5115 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.3166, allocations: 317.2 kB / 0.5118 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3166, allocations: 1.5 kB / 0.5118 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.3166, allocations: 9.406 kB / 0.5118 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-05/0.3167, allocations: 15.81 kB / 0.5119 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005059/0.3172, allocations: 291.5 kB / 0.5121 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.3186, allocations: 1.295 MB / 0.5134 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005556/0.3192, allocations: 209.7 kB / 0.5136 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.585e-05/0.3193, allocations: 60.05 kB / 0.5137 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.3193, allocations: 3.047 kB / 0.5137 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.3194, allocations: 40.66 kB / 0.5137 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.3194, allocations: 0 / 0.5137 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009133/0.3203, allocations: 435.8 kB / 0.5141 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.3203, allocations: 82.98 kB / 0.5142 GB, free: 436 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.3205, allocations: 194.2 kB / 0.5144 GB, free: 304 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.3205, allocations: 30.95 kB / 0.5144 GB, free: 268 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.134e-05/0.3206, allocations: 165.2 kB / 0.5146 GB, free: 116 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.3206, allocations: 55.81 kB / 0.5146 GB, free: 72 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.3207, allocations: 44.78 kB / 0.5147 GB, free: 40 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3209, allocations: 328 kB / 0.515 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.044e-05/0.321, allocations: 53.02 kB / 0.515 GB, free: 15.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.3212, allocations: 149.8 kB / 0.5152 GB, free: 15.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.3215, allocations: 232.5 kB / 0.5154 GB, free: 15.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3215, allocations: 1.953 kB / 0.5154 GB, free: 15.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004693/0.3219, allocations: 265.2 kB / 0.5156 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.322, allocations: 6.875 kB / 0.5157 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.322, allocations: 2.781 kB / 0.5157 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002512/0.3222, allocations: 41.58 kB / 0.5157 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.3224, allocations: 39.28 kB / 0.5157 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.3238, allocations: 1.452 MB / 0.5171 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.324, allocations: 8.672 kB / 0.5172 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.324, allocations: 10.33 kB / 0.5172 GB, free: 13.79 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.0002037/0.3243, allocations: 156.3 kB / 0.5173 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.3243, allocations: 20.44 kB / 0.5173 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.3247, allocations: 184.4 kB / 0.5175 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3247, allocations: 6.312 kB / 0.5175 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3247, allocations: 1.156 kB / 0.5175 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3248, allocations: 2.094 kB / 0.5175 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00096/0.3257, allocations: 0.5631 MB / 0.5181 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.3257, allocations: 1.625 kB / 0.5181 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.3259, allocations: 31.61 kB / 0.5181 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001673/0.326, allocations: 35.61 kB / 0.5181 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.3261, allocations: 2.562 kB / 0.5181 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.3274, allocations: 1.424 MB / 0.5195 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3274, allocations: 1.281 kB / 0.5195 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004647/0.3279, allocations: 303.9 kB / 0.5198 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.497e-05/0.3279, allocations: 91.66 kB / 0.5199 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.328, allocations: 3.344 kB / 0.5199 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.3281, allocations: 7.438 kB / 0.5199 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.3282, allocations: 17.5 kB / 0.5199 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.3282, allocations: 13.53 kB / 0.5199 GB, free: 11.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.3283, allocations: 141.3 kB / 0.5201 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3284, allocations: 0 / 0.5201 GB, free: 11.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004439/0.3288, allocations: 48.66 kB / 0.5201 GB, free: 11.21 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.0008165/0.3296, allocations: 0.8468 MB / 0.521 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000524/0.3302, allocations: 268.8 kB / 0.5212 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3302, allocations: 0.9062 kB / 0.5212 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002448/0.3304, allocations: 174.7 kB / 0.5214 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.3308, allocations: 30.98 kB / 0.5214 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.3338, allocations: 2.384 MB / 0.5237 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.3343, allocations: 0.7603 MB / 0.5245 GB, free: 7.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.3345, allocations: 40.33 kB / 0.5245 GB, free: 7.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.3346, allocations: 57.64 kB / 0.5246 GB, free: 7.512 MB / 398.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3346, allocations: 0 / 0.5246 GB, free: 7.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.3642, allocations: 3.899 MB / 0.5284 GB, free: 6.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.05, allocations: 9.344 kB / 0.5284 GB, free: 6.926 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