Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009146/0.0009147, allocations: 178.8 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.217/1.217, allocations: 225.7 MB / 243.2 MB, free: 8.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007512/0.0007512, allocations: 90.02 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.276/0.276, allocations: 38.18 MB / 383.7 MB, free: 40.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002809/0.000281, allocations: 8 kB / 453.5 MB, free: 8.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2456, allocations: 59.16 MB / 0.5007 GB, free: 38.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.003446/0.249, allocations: 3.279 MB / 0.5039 GB, free: 38.6 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.2513, allocations: 2.567 MB / 0.5064 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.2515, allocations: 10.69 kB / 0.5064 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.2517, allocations: 35.19 kB / 0.5064 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007549/0.2525, allocations: 258 kB / 0.5067 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.2528, allocations: 102.7 kB / 0.5068 GB, free: 36.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006966/0.2535, allocations: 0.5611 MB / 0.5073 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006339/0.2542, allocations: 482 kB / 0.5078 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.2545, allocations: 119.7 kB / 0.5079 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000276/0.2548, allocations: 151.1 kB / 0.5081 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/0.2548, allocations: 8.656 kB / 0.5081 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006624/0.2555, allocations: 361.4 kB / 0.5084 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.2556, allocations: 94.02 kB / 0.5085 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.2558, allocations: 118.1 kB / 0.5086 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006546/0.2564, allocations: 363.1 kB / 0.509 GB, free: 35.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2565, allocations: 0 / 0.509 GB, free: 35.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2565, allocations: 0 / 0.509 GB, free: 35.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2565, allocations: 3.375 kB / 0.509 GB, free: 35.8 MB / 378.7 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.0006405/0.2571, allocations: 476.8 kB / 0.5094 GB, free: 35.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.2572, allocations: 9.312 kB / 0.5094 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008722/0.258, allocations: 91.91 kB / 0.5095 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.2584, allocations: 265.3 kB / 0.5098 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.2584, allocations: 12.23 kB / 0.5098 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.918e-05/0.2585, allocations: 19.97 kB / 0.5098 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.259, allocations: 318.6 kB / 0.5101 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.259, allocations: 1.188 kB / 0.5101 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.2591, allocations: 6.5 kB / 0.5101 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.582e-05/0.2591, allocations: 14.44 kB / 0.5101 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.2596, allocations: 288.8 kB / 0.5104 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.2611, allocations: 1.296 MB / 0.5117 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.2616, allocations: 212.1 kB / 0.5119 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.804e-05/0.2617, allocations: 61.22 kB / 0.5119 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.2618, allocations: 6.984 kB / 0.5119 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.2618, allocations: 33.72 kB / 0.512 GB, free: 33.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.385e-06/0.2618, allocations: 0 / 0.512 GB, free: 33.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.000818/0.2626, allocations: 438.1 kB / 0.5124 GB, free: 33.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.2627, allocations: 81.58 kB / 0.5125 GB, free: 33.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.2628, allocations: 198.6 kB / 0.5126 GB, free: 33.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.2628, allocations: 29.7 kB / 0.5127 GB, free: 33.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.929e-05/0.2629, allocations: 161.1 kB / 0.5128 GB, free: 33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.2629, allocations: 47.95 kB / 0.5129 GB, free: 32.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.376e-06/0.2629, allocations: 8.594 kB / 0.5129 GB, free: 32.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.47e-05/0.263, allocations: 328.6 kB / 0.5132 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-05/0.2631, allocations: 54.17 kB / 0.5132 GB, free: 32.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.611e-05/0.2632, allocations: 143.5 kB / 0.5134 GB, free: 32.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.2634, allocations: 228.3 kB / 0.5136 GB, free: 32.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2634, allocations: 3.062 kB / 0.5136 GB, free: 32.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003588/0.2638, allocations: 264.9 kB / 0.5139 GB, free: 32.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2638, allocations: 5.719 kB / 0.5139 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.2638, allocations: 2.844 kB / 0.5139 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/0.264, allocations: 44.97 kB / 0.5139 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.2641, allocations: 39.67 kB / 0.5139 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007455/0.2649, allocations: 1.344 MB / 0.5153 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.265, allocations: 14.31 kB / 0.5153 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.2651, allocations: 8.844 kB / 0.5153 GB, free: 30.82 MB / 378.7 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.0001088/0.2652, allocations: 163.5 kB / 0.5154 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.2652, allocations: 16.47 kB / 0.5154 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000299/0.2655, allocations: 195 kB / 0.5156 GB, free: 30.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2655, allocations: 3 kB / 0.5156 GB, free: 30.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.2655, allocations: 2.688 kB / 0.5156 GB, free: 30.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.2655, allocations: 3.234 kB / 0.5156 GB, free: 30.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.2662, allocations: 0.5593 MB / 0.5162 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.2662, allocations: 3.031 kB / 0.5162 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.847e-05/0.2662, allocations: 23.3 kB / 0.5162 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001204/0.2664, allocations: 26.66 kB / 0.5162 GB, free: 30.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.2664, allocations: 10.28 kB / 0.5162 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006009/0.267, allocations: 1.318 MB / 0.5175 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.267, allocations: 6.906 kB / 0.5175 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.2673, allocations: 301.3 kB / 0.5178 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.2674, allocations: 90.95 kB / 0.5179 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.2674, allocations: 0 / 0.5179 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.917e-05/0.2675, allocations: 9.891 kB / 0.5179 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.692e-05/0.2675, allocations: 17.2 kB / 0.5179 GB, free: 28.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.2675, allocations: 9.625 kB / 0.518 GB, free: 28.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.751e-05/0.2676, allocations: 141.6 kB / 0.5181 GB, free: 28.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2676, allocations: 0 / 0.5181 GB, free: 28.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003129/0.268, allocations: 50.25 kB / 0.5181 GB, free: 28.36 MB / 378.7 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 8.743e-05/0.268, allocations: 106.1 kB / 0.5182 GB, free: 28.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004174/0.2685, allocations: 282.4 kB / 0.5185 GB, free: 28.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2685, allocations: 0 / 0.5185 GB, free: 28.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.2687, allocations: 176 kB / 0.5187 GB, free: 27.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.269, allocations: 29.03 kB / 0.5187 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005922/0.2696, allocations: 0.5327 MB / 0.5192 GB, free: 27.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.2698, allocations: 0.7687 MB / 0.52 GB, free: 26.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.2699, allocations: 41.97 kB / 0.52 GB, free: 26.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.2699, allocations: 18.09 kB / 0.52 GB, free: 26.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.27, allocations: 3.938 kB / 0.52 GB, free: 26.86 MB / 378.7 MB Notification: Performance of Templates: time 0.003851/0.2738, allocations: 1.586 MB / 0.5216 GB, free: 26.71 MB / 378.7 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","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches