Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001588/0.001595, allocations: 106.5 kB / 17.06 MB, free: 6.098 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.001753/0.001753, allocations: 197.4 kB / 18 MB, free: 5.168 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.441/1.441, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1893/0.1893, allocations: 38.04 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 63.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3305, allocations: 58.06 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004035/0.3346, allocations: 3.471 MB / 0.507 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.3364, allocations: 1.49 MB / 0.5085 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.3366, allocations: 5.781 kB / 0.5085 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000768/0.3374, allocations: 260.5 kB / 0.5087 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006071/0.338, allocations: 279.2 kB / 0.509 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.3383, allocations: 129 kB / 0.5091 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.3388, allocations: 342.1 kB / 0.5094 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002811/0.3391, allocations: 138.8 kB / 0.5096 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.3393, allocations: 148.5 kB / 0.5097 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.3395, allocations: 155.5 kB / 0.5099 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.104e-05/0.3396, allocations: 14.75 kB / 0.5099 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005821/0.3402, allocations: 332.1 kB / 0.5102 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.3403, allocations: 98.16 kB / 0.5103 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.3404, allocations: 103.8 kB / 0.5104 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005399/0.341, allocations: 362.6 kB / 0.5107 GB, free: 3.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.341, allocations: 9.734 kB / 0.5107 GB, free: 3.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.341, allocations: 0 / 0.5107 GB, free: 3.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.341, allocations: 0 / 0.5107 GB, free: 3.008 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007107/0.3417, allocations: 0.5204 MB / 0.5112 GB, free: 2.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3418, allocations: 9.719 kB / 0.5113 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.3418, allocations: 50.55 kB / 0.5113 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009324/0.3428, allocations: 94.14 kB / 0.5114 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.3431, allocations: 278.4 kB / 0.5117 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.3431, allocations: 12.73 kB / 0.5117 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.002e-05/0.3432, allocations: 14.84 kB / 0.5117 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004771/0.3436, allocations: 323.6 kB / 0.512 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.3437, allocations: 0.75 kB / 0.512 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.3437, allocations: 10.09 kB / 0.512 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.799e-05/0.3437, allocations: 21 kB / 0.512 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.3442, allocations: 293.4 kB / 0.5123 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.3458, allocations: 1.263 MB / 0.5135 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/0.3463, allocations: 238.4 kB / 0.5138 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.3464, allocations: 96.39 kB / 0.5139 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.3464, allocations: 2.938 kB / 0.5139 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.3465, allocations: 36.78 kB / 0.5139 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.3465, allocations: 0 / 0.5139 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008074/0.3473, allocations: 452.2 kB / 0.5143 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.3473, allocations: 84.42 kB / 0.5144 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.3475, allocations: 200.9 kB / 0.5146 GB, free: 372 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.3475, allocations: 27.02 kB / 0.5146 GB, free: 340 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.253e-05/0.3476, allocations: 159.5 kB / 0.5148 GB, free: 192 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.942e-05/0.3477, allocations: 60.89 kB / 0.5148 GB, free: 144 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.3477, allocations: 53.03 kB / 0.5149 GB, free: 108 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3479, allocations: 328.7 kB / 0.5152 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.3481, allocations: 86.27 kB / 0.5153 GB, free: 15.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.3483, allocations: 159 kB / 0.5154 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.3487, allocations: 270 kB / 0.5157 GB, free: 15.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3487, allocations: 0 / 0.5157 GB, free: 15.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004992/0.3492, allocations: 295.5 kB / 0.516 GB, free: 15.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3493, allocations: 9.188 kB / 0.516 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3493, allocations: 6 kB / 0.516 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.3493, allocations: 3.969 kB / 0.516 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.3496, allocations: 57.28 kB / 0.516 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.3496, allocations: 7.469 kB / 0.516 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.3497, allocations: 15 kB / 0.5161 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.3498, allocations: 17.16 kB / 0.5161 GB, free: 15.31 MB / 398.1 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.0001954/0.35, allocations: 156.1 kB / 0.5162 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.3501, allocations: 20.88 kB / 0.5162 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/0.3506, allocations: 238.1 kB / 0.5165 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.3506, allocations: 2.125 kB / 0.5165 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.3507, allocations: 1.516 kB / 0.5165 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3507, allocations: 1.984 kB / 0.5165 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.3528, allocations: 0.9493 MB / 0.5174 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.3529, allocations: 3.625 kB / 0.5174 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.3531, allocations: 37.27 kB / 0.5174 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.541e-05/0.3531, allocations: 4.688 kB / 0.5175 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.3531, allocations: 10.61 kB / 0.5175 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.565e-05/0.3532, allocations: 5.797 kB / 0.5175 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.3532, allocations: 8.938 kB / 0.5175 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/0.3539, allocations: 418.5 kB / 0.5179 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.354, allocations: 100.3 kB / 0.518 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.3541, allocations: 15.36 kB / 0.518 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.3543, allocations: 8.938 kB / 0.518 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.3544, allocations: 25.34 kB / 0.518 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.3544, allocations: 13.81 kB / 0.518 GB, free: 13.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002099/0.3546, allocations: 150 kB / 0.5182 GB, free: 13.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3546, allocations: 0 / 0.5182 GB, free: 13.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005117/0.3551, allocations: 54.34 kB / 0.5182 GB, free: 13.82 MB / 398.1 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 0.0009774/0.3561, allocations: 0.9416 MB / 0.5191 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005091/0.3566, allocations: 228.7 kB / 0.5194 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3566, allocations: 0 / 0.5194 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.3568, allocations: 97.66 kB / 0.5195 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.3573, allocations: 45.66 kB / 0.5195 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/0.3611, allocations: 2.696 MB / 0.5221 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.3616, allocations: 0.7628 MB / 0.5229 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001893/0.3618, allocations: 55.16 kB / 0.5229 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.362, allocations: 60.17 kB / 0.523 GB, free: 9.988 MB / 398.1 MB Notification: Performance of SimCode: time 2.525e-06/0.362, allocations: 0 / 0.523 GB, free: 9.988 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.3882, allocations: 4.132 MB / 0.527 GB, free: 9.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.54, allocations: 15.98 kB / 0.527 GB, free: 9.398 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_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_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches