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: translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") translateModel(PowerSystems.Examples.Generic.Test.ImpedanceTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001168/0.001168, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.328/1.328, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.04 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 65.94 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1015, allocations: 58.06 MB / 456.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.005413/0.107, allocations: 3.428 MB / 460.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1091, allocations: 1.45 MB / 461.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002205/0.1094, allocations: 7.938 kB / 461.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.1104, allocations: 250.9 kB / 462 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006884/0.1111, allocations: 278.9 kB / 462.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003191/0.1114, allocations: 111.7 kB / 462.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004182/0.1119, allocations: 335.1 kB / 462.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.1122, allocations: 133.9 kB / 462.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.1124, allocations: 151.4 kB / 463 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.1127, allocations: 147.4 kB / 463.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.1128, allocations: 20 kB / 463.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005122/0.1133, allocations: 315.2 kB / 463.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.1134, allocations: 95.77 kB / 463.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.1135, allocations: 111.5 kB / 463.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004688/0.114, allocations: 339 kB / 464 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.114, allocations: 0 / 464 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.114, allocations: 4 kB / 464 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.114, allocations: 0 / 464 MB, free: 0.9023 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.0006698/0.1147, allocations: 0.5026 MB / 464.5 MB, free: 360 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.1148, allocations: 12.03 kB / 464.5 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008374/0.1156, allocations: 92.55 kB / 464.6 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.1159, allocations: 256.4 kB / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.1159, allocations: 20.31 kB / 464.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.116, allocations: 24.11 kB / 464.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000458/0.1165, allocations: 314.4 kB / 465.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.1165, allocations: 3.938 kB / 465.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.1165, allocations: 4 kB / 465.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/0.1166, allocations: 16 kB / 465.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.117, allocations: 287.8 kB / 465.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.1186, allocations: 1.301 MB / 466.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005693/0.1192, allocations: 209.2 kB / 467 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.968e-05/0.1193, allocations: 53.77 kB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.1193, allocations: 15.92 kB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.1193, allocations: 42.61 kB / 467.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.1194, allocations: 0 / 467.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009254/0.1203, allocations: 426.2 kB / 467.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.1203, allocations: 81.11 kB / 467.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1205, allocations: 194.5 kB / 467.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.1205, allocations: 29.7 kB / 467.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.882e-05/0.1206, allocations: 155.8 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.1207, allocations: 51.3 kB / 468 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.443e-05/0.1208, allocations: 49.61 kB / 468.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1209, allocations: 326.8 kB / 468.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.168e-05/0.121, allocations: 55.91 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.1211, allocations: 153.7 kB / 468.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.1214, allocations: 237.2 kB / 468.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1214, allocations: 0 / 468.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004372/0.1218, allocations: 266 kB / 469.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.1219, allocations: 8 kB / 469.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1219, allocations: 7.938 kB / 469.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.1221, allocations: 37.2 kB / 469.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.1223, allocations: 43.92 kB / 469.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.1234, allocations: 1.445 MB / 470.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.1235, allocations: 8 kB / 470.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.1235, allocations: 12 kB / 470.7 MB, free: 9.66 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.000152/0.1237, allocations: 160.1 kB / 470.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.344e-05/0.1237, allocations: 19.75 kB / 470.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003617/0.1241, allocations: 191 kB / 471 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1241, allocations: 3.938 kB / 471 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1241, allocations: 7.938 kB / 471 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1242, allocations: 0 / 471 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007728/0.1249, allocations: 0.5562 MB / 471.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1249, allocations: 4 kB / 471.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.386e-05/0.125, allocations: 23.98 kB / 471.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.1252, allocations: 28.83 kB / 471.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1252, allocations: 7.938 kB / 471.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.1263, allocations: 1.431 MB / 473.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.1263, allocations: 4.031 kB / 473.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003794/0.1267, allocations: 299.5 kB / 473.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.465e-05/0.1268, allocations: 92.92 kB / 473.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.1268, allocations: 0 / 473.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.1269, allocations: 8 kB / 473.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.127, allocations: 15.86 kB / 473.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.127, allocations: 19.92 kB / 473.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.1271, allocations: 139.1 kB / 473.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1271, allocations: 0 / 473.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003803/0.1275, allocations: 52 kB / 473.7 MB, free: 6.352 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.0001142/0.1276, allocations: 103.2 kB / 473.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005132/0.1282, allocations: 267.2 kB / 474.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1282, allocations: 0 / 474.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.1284, allocations: 178.7 kB / 474.2 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.1288, allocations: 38.5 kB / 474.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008089/0.1297, allocations: 459.8 kB / 474.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.13, allocations: 0.7515 MB / 475.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001237/0.1302, allocations: 37.52 kB / 475.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.876e-05/0.1302, allocations: 23.42 kB / 475.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1302, allocations: 0 / 475.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of Templates: time 0.004807/0.135, allocations: 1.667 MB / 477.2 MB, free: 2.758 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches