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.001677/0.001678, allocations: 110.8 kB / 17.29 MB, free: 6.215 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.002027/0.002028, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.592/2.592, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3813/0.3813, allocations: 38.04 MB / 330.1 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 60.83 kB / 398.9 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1674, allocations: 58.06 MB / 457 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.008022/0.1755, allocations: 3.674 MB / 460.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.1788, allocations: 1.496 MB / 462.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002906/0.1791, allocations: 15.88 kB / 462.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001119/0.1802, allocations: 243.2 kB / 462.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000925/0.1812, allocations: 255.2 kB / 462.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.1816, allocations: 99.75 kB / 462.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002142/0.1838, allocations: 339 kB / 463.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005349/0.1843, allocations: 149.9 kB / 463.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003825/0.1847, allocations: 155.3 kB / 463.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003333/0.1851, allocations: 159.5 kB / 463.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.1851, allocations: 19.98 kB / 463.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007629/0.1859, allocations: 303.2 kB / 463.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.1861, allocations: 103.7 kB / 464 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.1863, allocations: 99.48 kB / 464.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005216/0.1868, allocations: 259.5 kB / 464.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1868, allocations: 0 / 464.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1869, allocations: 0 / 464.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1869, allocations: 0 / 464.3 MB, free: 1.086 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.0009853/0.1879, allocations: 0.5103 MB / 464.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.1879, allocations: 12.03 kB / 464.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/0.1893, allocations: 88.55 kB / 464.9 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.1897, allocations: 258.3 kB / 465.2 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.1897, allocations: 20.33 kB / 465.2 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-05/0.1898, allocations: 24.11 kB / 465.2 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008026/0.1979, allocations: 314.3 kB / 465.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.198, allocations: 0 / 465.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.468e-05/0.198, allocations: 8 kB / 465.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.536e-05/0.1981, allocations: 19.98 kB / 465.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006754/0.1988, allocations: 291.6 kB / 465.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.2014, allocations: 1.308 MB / 467.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009434/0.2023, allocations: 205.2 kB / 467.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.2025, allocations: 65.75 kB / 467.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.079e-05/0.2026, allocations: 7.938 kB / 467.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.2027, allocations: 34.56 kB / 467.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.407e-06/0.2027, allocations: 0 / 467.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001706/0.2044, allocations: 426.2 kB / 467.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/0.2045, allocations: 81.14 kB / 468 MB, free: 13.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.2049, allocations: 194.6 kB / 468.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.2049, allocations: 33.7 kB / 468.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.2051, allocations: 163.8 kB / 468.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.2052, allocations: 51.28 kB / 468.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.2053, allocations: 41.62 kB / 468.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.2056, allocations: 338.8 kB / 468.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.2058, allocations: 55.97 kB / 468.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.2061, allocations: 145.7 kB / 469 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005683/0.2067, allocations: 233.2 kB / 469.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2067, allocations: 0 / 469.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008457/0.2075, allocations: 261.9 kB / 469.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.2076, allocations: 4 kB / 469.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.2076, allocations: 4 kB / 469.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.2081, allocations: 41.27 kB / 469.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003028/0.2084, allocations: 47.91 kB / 469.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.2106, allocations: 1.445 MB / 471 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.2108, allocations: 8 kB / 471 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.2109, allocations: 11.98 kB / 471 MB, free: 9.832 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.0002811/0.2112, allocations: 150.3 kB / 471.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.2113, allocations: 23.75 kB / 471.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006977/0.212, allocations: 195 kB / 471.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.212, allocations: 4 kB / 471.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.2121, allocations: 0 / 471.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.2121, allocations: 3.984 kB / 471.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.2137, allocations: 0.5601 MB / 471.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.2137, allocations: 0 / 471.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.2139, allocations: 23.92 kB / 472 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002991/0.2142, allocations: 36.77 kB / 472 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.2143, allocations: 16.03 kB / 472 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00193/0.2162, allocations: 1.423 MB / 473.4 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/0.2162, allocations: 3.984 kB / 473.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006934/0.2169, allocations: 295.5 kB / 473.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.2171, allocations: 96.91 kB / 473.8 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/0.2171, allocations: 7.938 kB / 473.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.2174, allocations: 0 / 473.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.2175, allocations: 19.92 kB / 473.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.2175, allocations: 4 kB / 473.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.2177, allocations: 147.1 kB / 474 MB, free: 6.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.2178, allocations: 0 / 474 MB, free: 6.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007619/0.2185, allocations: 52 kB / 474.1 MB, free: 6.523 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.0001969/0.2187, allocations: 103.1 kB / 474.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000905/0.2197, allocations: 275.3 kB / 474.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.2197, allocations: 4.062 kB / 474.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004242/0.2201, allocations: 174.6 kB / 474.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000695/0.2208, allocations: 23.98 kB / 474.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.2224, allocations: 0.5673 MB / 475.2 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.223, allocations: 0.7554 MB / 475.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.398e-05/0.2231, allocations: 23.44 kB / 476 MB, free: 4.496 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2232, allocations: 0 / 476 MB, free: 4.496 MB / 350.1 MB Notification: Performance of Templates: time 0.01058/0.2337, allocations: 3.153 MB / 479.1 MB, free: 1.34 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/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