Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001528/0.001528, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.001788/0.001788, allocations: 191 kB / 18 MB, free: 5.098 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1911/0.1911, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 71.89 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3252, allocations: 58.06 MB / 0.5036 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004513/0.3297, allocations: 3.31 MB / 0.5068 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.3316, allocations: 1.217 MB / 0.508 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.3318, allocations: 5.656 kB / 0.508 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007095/0.3325, allocations: 160 kB / 0.5082 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004568/0.333, allocations: 179.2 kB / 0.5084 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.3333, allocations: 132.7 kB / 0.5085 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003999/0.3337, allocations: 294.3 kB / 0.5088 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.3341, allocations: 122.7 kB / 0.5089 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.3343, allocations: 129.1 kB / 0.509 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.3345, allocations: 105.4 kB / 0.5091 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.3345, allocations: 13.75 kB / 0.5091 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003663/0.3349, allocations: 229.6 kB / 0.5093 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.606e-05/0.335, allocations: 64.98 kB / 0.5094 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.884e-05/0.3351, allocations: 94.33 kB / 0.5095 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.3355, allocations: 291.4 kB / 0.5098 GB, free: 3.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3355, allocations: 0 / 0.5098 GB, free: 3.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3355, allocations: 0 / 0.5098 GB, free: 3.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3355, allocations: 0 / 0.5098 GB, free: 3.395 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005966/0.3361, allocations: 0.5121 MB / 0.5103 GB, free: 2.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3362, allocations: 17.98 kB / 0.5103 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.516e-05/0.3362, allocations: 54.2 kB / 0.5103 GB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007828/0.337, allocations: 76.83 kB / 0.5104 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.3373, allocations: 260.4 kB / 0.5107 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.3374, allocations: 16.28 kB / 0.5107 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.583e-05/0.3374, allocations: 20.03 kB / 0.5107 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004054/0.3378, allocations: 274.5 kB / 0.511 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.3379, allocations: 1.219 kB / 0.511 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.3379, allocations: 5.094 kB / 0.511 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.3379, allocations: 17.84 kB / 0.511 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003563/0.3383, allocations: 223.3 kB / 0.5112 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.3398, allocations: 1.203 MB / 0.5124 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.34, allocations: 143.7 kB / 0.5125 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.871e-05/0.3401, allocations: 49.25 kB / 0.5126 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3401, allocations: 6.609 kB / 0.5126 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.3402, allocations: 40.3 kB / 0.5126 GB, free: 1.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.683e-06/0.3402, allocations: 0 / 0.5126 GB, free: 1.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003719/0.3405, allocations: 170.7 kB / 0.5128 GB, free: 1.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.3406, allocations: 79.08 kB / 0.5128 GB, free: 1.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.3408, allocations: 206.2 kB / 0.513 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.3408, allocations: 30.86 kB / 0.5131 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.931e-05/0.3409, allocations: 151.3 kB / 0.5132 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.3409, allocations: 45.12 kB / 0.5133 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-05/0.341, allocations: 47.58 kB / 0.5133 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.97e-05/0.3411, allocations: 333.2 kB / 0.5136 GB, free: 340 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.298e-05/0.3412, allocations: 41.69 kB / 0.5137 GB, free: 328 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.3413, allocations: 117.9 kB / 0.5138 GB, free: 212 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.3415, allocations: 190.1 kB / 0.5139 GB, free: 52 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3415, allocations: 1 kB / 0.514 GB, free: 52 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003473/0.3419, allocations: 208.8 kB / 0.5141 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3419, allocations: 5.75 kB / 0.5142 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3419, allocations: 2.688 kB / 0.5142 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3419, allocations: 13.11 kB / 0.5142 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.3422, allocations: 49.55 kB / 0.5142 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.3432, allocations: 1.414 MB / 0.5156 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.3434, allocations: 25.91 kB / 0.5156 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3434, allocations: 8.375 kB / 0.5156 GB, free: 14.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.3435, allocations: 154.4 kB / 0.5158 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.3436, allocations: 16.83 kB / 0.5158 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.3438, allocations: 134.8 kB / 0.5159 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3439, allocations: 3.172 kB / 0.5159 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3439, allocations: 9.109 kB / 0.5159 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3439, allocations: 1.078 kB / 0.5159 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007186/0.3446, allocations: 494.9 kB / 0.5164 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3446, allocations: 6.203 kB / 0.5164 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.3448, allocations: 36.16 kB / 0.5164 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3448, allocations: 1.125 kB / 0.5164 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.3448, allocations: 3.172 kB / 0.5165 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009924/0.3458, allocations: 1.428 MB / 0.5178 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3458, allocations: 0.9375 kB / 0.5178 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003964/0.3462, allocations: 304.5 kB / 0.5181 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.814e-05/0.3463, allocations: 100.5 kB / 0.5182 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.3464, allocations: 2.234 kB / 0.5182 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.3465, allocations: 2.797 kB / 0.5182 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.3465, allocations: 16.56 kB / 0.5183 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3465, allocations: 4.219 kB / 0.5183 GB, free: 12.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.3467, allocations: 146.1 kB / 0.5184 GB, free: 11.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3467, allocations: 4.938 kB / 0.5184 GB, free: 11.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.3471, allocations: 46.5 kB / 0.5184 GB, free: 11.92 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006301/0.3478, allocations: 0.8444 MB / 0.5193 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003298/0.3481, allocations: 132.8 kB / 0.5194 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3481, allocations: 0 / 0.5194 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001497/0.3483, allocations: 58.25 kB / 0.5195 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.3487, allocations: 30.94 kB / 0.5195 GB, free: 11.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.3516, allocations: 2.358 MB / 0.5218 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.3519, allocations: 0.7392 MB / 0.5225 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.352, allocations: 30.5 kB / 0.5225 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.203e-05/0.3521, allocations: 59.77 kB / 0.5226 GB, free: 8.504 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3521, allocations: 0 / 0.5226 GB, free: 8.504 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.3755, allocations: 3.814 MB / 0.5263 GB, free: 7.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.9, allocations: 16.41 kB / 0.5263 GB, free: 7.902 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches