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.0009262/0.0009261, allocations: 90.53 kB / 16.65 MB, free: 6.348 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.001187/0.001187, allocations: 180.5 kB / 17.56 MB, free: 5.949 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.191/1.191, allocations: 223.2 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1569/0.1569, allocations: 38.09 MB / 330.8 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 8 kB / 400.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09267, allocations: 59.16 MB / 460 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.003217/0.09592, allocations: 3.318 MB / 463.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.09757, allocations: 1.473 MB / 464.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.318e-05/0.09768, allocations: 15.94 kB / 464.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.09781, allocations: 27.78 kB / 464.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004746/0.09829, allocations: 263.1 kB / 465.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.0985, allocations: 99.77 kB / 465.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.09898, allocations: 0.5689 MB / 465.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005195/0.09951, allocations: 326.9 kB / 466.1 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.09968, allocations: 123.4 kB / 466.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.09989, allocations: 151.5 kB / 466.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.09992, allocations: 8 kB / 466.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000425/0.1003, allocations: 371.1 kB / 466.7 MB, free: 216 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.219e-05/0.1004, allocations: 87.77 kB / 466.8 MB, free: 128 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.1006, allocations: 129.3 kB / 466.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003505/0.1009, allocations: 362.7 kB / 467.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1009, allocations: 0 / 467.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1009, allocations: 0 / 467.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1009, allocations: 0 / 467.3 MB, free: 15.64 MB / 350.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.000512/0.1015, allocations: 478.8 kB / 467.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.1015, allocations: 8.031 kB / 467.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.303e-05/0.1016, allocations: 54.73 kB / 467.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007452/0.1023, allocations: 96.48 kB / 467.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.1026, allocations: 258.6 kB / 468.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1026, allocations: 24.08 kB / 468.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.684e-05/0.1026, allocations: 16 kB / 468.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.1031, allocations: 318.3 kB / 468.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1031, allocations: 0 / 468.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.1031, allocations: 7.984 kB / 468.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.1031, allocations: 27.92 kB / 468.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.1035, allocations: 287.8 kB / 468.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.1049, allocations: 1.293 MB / 470.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004975/0.1055, allocations: 213.2 kB / 470.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.194e-05/0.1055, allocations: 65.69 kB / 470.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1056, allocations: 0 / 470.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.1056, allocations: 34.56 kB / 470.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 9.22e-07/0.1056, allocations: 0 / 470.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008212/0.1064, allocations: 430.5 kB / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.1065, allocations: 81.05 kB / 470.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.1066, allocations: 198.2 kB / 471.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.1067, allocations: 29.7 kB / 471.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.082e-05/0.1068, allocations: 164 kB / 471.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.1068, allocations: 43.3 kB / 471.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.1068, allocations: 33.64 kB / 471.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.74e-05/0.1069, allocations: 330.8 kB / 471.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/0.107, allocations: 47.97 kB / 471.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.1071, allocations: 153.7 kB / 471.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.1074, allocations: 228.6 kB / 472.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1074, allocations: 0 / 472.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004002/0.1078, allocations: 270.9 kB / 472.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1078, allocations: 8 kB / 472.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1078, allocations: 4 kB / 472.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002043/0.108, allocations: 36.89 kB / 472.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.1082, allocations: 43.92 kB / 472.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009176/0.1091, allocations: 1.343 MB / 473.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.1092, allocations: 8 kB / 473.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.1093, allocations: 16 kB / 473.8 MB, free: 8.496 MB / 350.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.0001226/0.1094, allocations: 161.8 kB / 474 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.675e-05/0.1094, allocations: 15.81 kB / 474 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003397/0.1098, allocations: 194.9 kB / 474.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1098, allocations: 0 / 474.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1098, allocations: 4 kB / 474.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1098, allocations: 0 / 474.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006944/0.1105, allocations: 0.5679 MB / 474.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1105, allocations: 4 kB / 474.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.721e-05/0.1106, allocations: 23.98 kB / 474.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/0.1108, allocations: 32.83 kB / 474.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.1108, allocations: 4.094 kB / 474.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008147/0.1116, allocations: 1.319 MB / 476.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1116, allocations: 0 / 476.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.1119, allocations: 307.5 kB / 476.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.112, allocations: 88.92 kB / 476.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.112, allocations: 4 kB / 476.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.1121, allocations: 4 kB / 476.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.272e-05/0.1122, allocations: 19.91 kB / 476.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.1122, allocations: 11.98 kB / 476.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.596e-05/0.1123, allocations: 140.3 kB / 476.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1123, allocations: 0 / 476.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.1126, allocations: 52 kB / 476.8 MB, free: 5.301 MB / 350.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.0005239/0.1132, allocations: 0.8372 MB / 477.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003887/0.1136, allocations: 261.8 kB / 477.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1136, allocations: 0 / 477.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.1138, allocations: 179.5 kB / 478 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1142, allocations: 40.05 kB / 478.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.1164, allocations: 2.451 MB / 480.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.1167, allocations: 0.7596 MB / 481.3 MB, free: 500 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1168, allocations: 33.52 kB / 481.3 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.874e-05/0.1169, allocations: 59.41 kB / 481.4 MB, free: 404 kB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1169, allocations: 4 kB / 481.4 MB, free: 400 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1323/0.2492, allocations: 3.555 MB / 484.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002719/0.2495, allocations: 224.5 kB / 485.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.575/1.825, allocations: 7.938 kB / 485.1 MB, free: 12.72 MB / 366.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","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches