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.001493/0.001494, allocations: 104.3 kB / 16.62 MB, free: 6.812 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.001468/0.001468, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.315/1.315, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1742/0.1742, allocations: 38.03 MB / 329.4 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 65.78 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.09731, allocations: 58.07 MB / 456.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.005039/0.1024, allocations: 3.674 MB / 460.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.1045, allocations: 1.493 MB / 461.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.1047, allocations: 11.94 kB / 461.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007418/0.1054, allocations: 235.1 kB / 461.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006352/0.1061, allocations: 263.2 kB / 462.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.1064, allocations: 95.75 kB / 462.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.1068, allocations: 339 kB / 462.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.1072, allocations: 157.9 kB / 462.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.1075, allocations: 159.2 kB / 462.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002538/0.1077, allocations: 159.5 kB / 463 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.1078, allocations: 12 kB / 463 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005299/0.1083, allocations: 311.2 kB / 463.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.1084, allocations: 99.75 kB / 463.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1085, allocations: 99.48 kB / 463.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.1092, allocations: 370.9 kB / 463.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.1092, allocations: 4 kB / 463.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1092, allocations: 0 / 463.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.1092, allocations: 0 / 463.9 MB, free: 0.8633 MB / 334.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.0009543/0.1102, allocations: 0.5103 MB / 464.4 MB, free: 312 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.1103, allocations: 11.89 kB / 464.4 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.09e-05/0.1103, allocations: 54.73 kB / 464.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/0.1115, allocations: 92.55 kB / 464.6 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.1119, allocations: 254.1 kB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.112, allocations: 20.31 kB / 464.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.112, allocations: 19.94 kB / 464.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005591/0.1126, allocations: 314.4 kB / 465.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.1126, allocations: 3.938 kB / 465.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.1127, allocations: 7.984 kB / 465.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.1127, allocations: 23.98 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.1131, allocations: 283.8 kB / 465.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.1147, allocations: 1.301 MB / 466.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006479/0.1154, allocations: 213.2 kB / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.16e-05/0.1155, allocations: 65.69 kB / 467 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.1155, allocations: 4 kB / 467 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.1155, allocations: 38.5 kB / 467.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.333e-06/0.1156, allocations: 0 / 467.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000871/0.1164, allocations: 429.3 kB / 467.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.1165, allocations: 81.11 kB / 467.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.1167, allocations: 194.6 kB / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.1167, allocations: 25.7 kB / 467.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.1169, allocations: 163.8 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.459e-05/0.117, allocations: 51.28 kB / 468 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.128e-05/0.117, allocations: 49.61 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1172, allocations: 338.9 kB / 468.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.1173, allocations: 51.91 kB / 468.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.1174, allocations: 153.7 kB / 468.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.1177, allocations: 221.3 kB / 468.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1177, allocations: 0 / 468.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004473/0.1182, allocations: 273.8 kB / 469.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1182, allocations: 11.94 kB / 469.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.1182, allocations: 4 kB / 469.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002283/0.1185, allocations: 41.27 kB / 469.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.1186, allocations: 43.91 kB / 469.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.12, allocations: 1.437 MB / 470.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.1201, allocations: 4 kB / 470.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.1202, allocations: 16 kB / 470.6 MB, free: 9.551 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.000261/0.1204, allocations: 161.8 kB / 470.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.652e-05/0.1205, allocations: 19.75 kB / 470.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004572/0.121, allocations: 188 kB / 471 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.121, allocations: 7.922 kB / 471 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.121, allocations: 4 kB / 471 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.121, allocations: 0 / 471 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007976/0.1218, allocations: 0.5601 MB / 471.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1218, allocations: 4 kB / 471.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.317e-05/0.1219, allocations: 19.98 kB / 471.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001404/0.122, allocations: 40.8 kB / 471.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.1221, allocations: 4.062 kB / 471.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.1231, allocations: 1.422 MB / 473 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.1231, allocations: 4.031 kB / 473 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003759/0.1235, allocations: 295.6 kB / 473.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.854e-05/0.1236, allocations: 96.91 kB / 473.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.1236, allocations: 4 kB / 473.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.1237, allocations: 4 kB / 473.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.1238, allocations: 19.86 kB / 473.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.1238, allocations: 12 kB / 473.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001211/0.1239, allocations: 140.3 kB / 473.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1239, allocations: 0 / 473.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.1243, allocations: 52 kB / 473.7 MB, free: 6.242 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.0007398/0.125, allocations: 0.8329 MB / 474.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004942/0.1255, allocations: 271.2 kB / 474.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1255, allocations: 4.062 kB / 474.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.1258, allocations: 178.5 kB / 474.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.1261, allocations: 38.67 kB / 475 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.1292, allocations: 2.426 MB / 477.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.1296, allocations: 0.7671 MB / 478.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.1297, allocations: 41.5 kB / 478.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.671e-05/0.1298, allocations: 55.42 kB / 478.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1298, allocations: 0 / 478.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.1501, allocations: 3.742 MB / 482 MB, free: 13.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/0.1504, allocations: 225.5 kB / 482.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/1.887, allocations: 4 kB / 482.2 MB, free: 13.49 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","/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