Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.FixedCurrentTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 183 kB / 16.71 MB, free: 4.836 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.382/1.382, allocations: 225.7 MB / 243.2 MB, free: 8.434 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.0007385/0.0007386, allocations: 92.47 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.3933/0.3933, allocations: 38.12 MB / 383.6 MB, free: 40.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005513/0.0005516, allocations: 8 kB / 453.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3343, allocations: 59.14 MB / 0.5006 GB, free: 38.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004117/0.3385, allocations: 3.309 MB / 0.5038 GB, free: 38.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.3409, allocations: 2.696 MB / 0.5065 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.3411, allocations: 11.06 kB / 0.5065 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.3413, allocations: 29.98 kB / 0.5065 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00066/0.342, allocations: 261.7 kB / 0.5068 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.3423, allocations: 115.8 kB / 0.5069 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006141/0.3429, allocations: 0.5696 MB / 0.5074 GB, free: 36.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005924/0.3435, allocations: 480.2 kB / 0.5079 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.3437, allocations: 128.6 kB / 0.508 GB, free: 36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.3439, allocations: 155.5 kB / 0.5081 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.3439, allocations: 8.281 kB / 0.5082 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005715/0.3445, allocations: 385.6 kB / 0.5085 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.3446, allocations: 91.45 kB / 0.5086 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.3448, allocations: 121 kB / 0.5087 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.3452, allocations: 370.5 kB / 0.5091 GB, free: 35.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3452, allocations: 1.406 kB / 0.5091 GB, free: 35.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3453, allocations: 0.7188 kB / 0.5091 GB, free: 35.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.3453, allocations: 0.75 kB / 0.5091 GB, free: 35.58 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.0005298/0.3458, allocations: 486.7 kB / 0.5095 GB, free: 35.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3458, allocations: 9.234 kB / 0.5096 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008397/0.3467, allocations: 90.5 kB / 0.5096 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.347, allocations: 267.8 kB / 0.5099 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.347, allocations: 11.28 kB / 0.5099 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.347, allocations: 15.59 kB / 0.5099 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.3475, allocations: 324.9 kB / 0.5102 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3476, allocations: 4.5 kB / 0.5102 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.3476, allocations: 6.469 kB / 0.5102 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.65e-05/0.3476, allocations: 18.39 kB / 0.5103 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.3481, allocations: 291.8 kB / 0.5105 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.3496, allocations: 1.267 MB / 0.5118 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.35, allocations: 229.9 kB / 0.512 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.3501, allocations: 109.4 kB / 0.5121 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3502, allocations: 10.83 kB / 0.5121 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3502, allocations: 38.39 kB / 0.5121 GB, free: 33.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 2.064e-06/0.3502, allocations: 0 / 0.5121 GB, free: 33.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006755/0.3509, allocations: 445.1 kB / 0.5126 GB, free: 33.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.3509, allocations: 77.61 kB / 0.5126 GB, free: 33.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.3511, allocations: 208.3 kB / 0.5128 GB, free: 33.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.3511, allocations: 32.52 kB / 0.5129 GB, free: 32.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.3512, allocations: 150.7 kB / 0.513 GB, free: 32.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.3512, allocations: 58.89 kB / 0.5131 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.071e-05/0.3512, allocations: 4 kB / 0.5131 GB, free: 32.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.3513, allocations: 328 kB / 0.5134 GB, free: 32.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.3514, allocations: 87.06 kB / 0.5135 GB, free: 32.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.3515, allocations: 160.6 kB / 0.5136 GB, free: 32.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.3518, allocations: 263.4 kB / 0.5139 GB, free: 32.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3518, allocations: 3.062 kB / 0.5139 GB, free: 32.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003339/0.3522, allocations: 291.2 kB / 0.5142 GB, free: 32.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3522, allocations: 12.16 kB / 0.5142 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3522, allocations: 6.969 kB / 0.5142 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.3522, allocations: 2.938 kB / 0.5142 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.3525, allocations: 55.59 kB / 0.5142 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.3525, allocations: 6.391 kB / 0.5142 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.3526, allocations: 13.3 kB / 0.5143 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.3526, allocations: 12.78 kB / 0.5143 GB, free: 32.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.3527, allocations: 159.9 kB / 0.5144 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/0.3528, allocations: 16.12 kB / 0.5144 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003029/0.3531, allocations: 237.8 kB / 0.5147 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3531, allocations: 2.812 kB / 0.5147 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3531, allocations: 0 / 0.5147 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3531, allocations: 2.75 kB / 0.5147 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009953/0.3541, allocations: 0.9474 MB / 0.5156 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3541, allocations: 5.656 kB / 0.5156 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.3543, allocations: 37.06 kB / 0.5156 GB, free: 31.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.3543, allocations: 5.875 kB / 0.5156 GB, free: 31.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.3543, allocations: 13.56 kB / 0.5156 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.3543, allocations: 5.719 kB / 0.5157 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3543, allocations: 2.812 kB / 0.5157 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.3547, allocations: 416.3 kB / 0.5161 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.3548, allocations: 98.36 kB / 0.5161 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.3548, allocations: 13.55 kB / 0.5162 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.355, allocations: 14.5 kB / 0.5162 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.355, allocations: 26.88 kB / 0.5162 GB, free: 30.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3551, allocations: 12.88 kB / 0.5162 GB, free: 30.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001076/0.3552, allocations: 148.8 kB / 0.5164 GB, free: 30.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3552, allocations: 1.25 kB / 0.5164 GB, free: 30.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003369/0.3555, allocations: 50.22 kB / 0.5164 GB, free: 30.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.826e-05/0.3556, allocations: 120.8 kB / 0.5165 GB, free: 30.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002962/0.3559, allocations: 215.3 kB / 0.5167 GB, free: 30.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3559, allocations: 0 / 0.5167 GB, free: 30.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.3561, allocations: 101.9 kB / 0.5168 GB, free: 30.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.3565, allocations: 36.22 kB / 0.5169 GB, free: 30.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007321/0.3573, allocations: 0.6739 MB / 0.5175 GB, free: 29.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3575, allocations: 0.7593 MB / 0.5183 GB, free: 29.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.3576, allocations: 56.14 kB / 0.5183 GB, free: 29.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.243e-05/0.3577, allocations: 19.66 kB / 0.5183 GB, free: 29.12 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3577, allocations: 0 / 0.5183 GB, free: 29.12 MB / 378.7 MB Notification: Performance of Templates: time 0.004109/0.3618, allocations: 1.74 MB / 0.52 GB, free: 28.97 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)