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.0008489/0.000849, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0009212/0.0009212, allocations: 182 kB / 17.56 MB, free: 6.203 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.223/1.223, allocations: 223.2 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1598/0.1598, allocations: 38.09 MB / 330.8 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002446, allocations: 8.719 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.0807, allocations: 59.17 MB / 460 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.003164/0.0839, allocations: 3.341 MB / 463.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.08558, allocations: 1.532 MB / 464.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-05/0.08569, allocations: 11.94 kB / 464.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.08582, allocations: 35.7 kB / 464.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004716/0.0863, allocations: 263.2 kB / 465.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.08653, allocations: 115.7 kB / 465.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004662/0.08701, allocations: 0.5729 MB / 465.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005256/0.08755, allocations: 326.8 kB / 466.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.08772, allocations: 119.4 kB / 466.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.08791, allocations: 147.5 kB / 466.4 MB, free: 484 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.08794, allocations: 12 kB / 466.4 MB, free: 472 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004522/0.0884, allocations: 407 kB / 466.8 MB, free: 64 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.327e-05/0.0885, allocations: 87.7 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.08861, allocations: 129.2 kB / 467 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.08897, allocations: 370.8 kB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.08899, allocations: 3.938 kB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08899, allocations: 0 / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.089, allocations: 0 / 467.4 MB, free: 15.48 MB / 350.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.0005306/0.08954, allocations: 490.6 kB / 467.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.08958, allocations: 16.03 kB / 467.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.19e-05/0.08964, allocations: 50.73 kB / 468 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007827/0.09043, allocations: 96.55 kB / 468 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.09069, allocations: 259.8 kB / 468.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.09071, allocations: 16.31 kB / 468.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.769e-05/0.09076, allocations: 16.38 kB / 468.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.09118, allocations: 325.6 kB / 468.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.09121, allocations: 3.938 kB / 468.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.09123, allocations: 8 kB / 468.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.793e-05/0.09127, allocations: 12 kB / 468.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003803/0.09165, allocations: 295.8 kB / 469 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.09308, allocations: 1.283 MB / 470.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.09348, allocations: 233 kB / 470.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.09362, allocations: 93.73 kB / 470.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.09365, allocations: 4 kB / 470.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.09367, allocations: 34.56 kB / 470.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.09368, allocations: 0 / 470.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007033/0.09439, allocations: 443.3 kB / 471 MB, free: 11.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.09444, allocations: 85.03 kB / 471.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.0946, allocations: 198.2 kB / 471.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.09463, allocations: 29.7 kB / 471.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.104e-05/0.09473, allocations: 163.8 kB / 471.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.09478, allocations: 63.31 kB / 471.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.09482, allocations: 25.7 kB / 471.6 MB, free: 11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.09491, allocations: 326.8 kB / 471.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.09504, allocations: 83.95 kB / 472 MB, free: 10.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.0952, allocations: 154.2 kB / 472.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.0955, allocations: 266.6 kB / 472.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.09551, allocations: 3.938 kB / 472.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003789/0.09589, allocations: 299.5 kB / 472.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.09592, allocations: 11.94 kB / 472.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.09593, allocations: 4.281 kB / 472.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.09595, allocations: 4 kB / 472.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.09618, allocations: 51.91 kB / 472.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.09619, allocations: 4 kB / 472.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.09633, allocations: 15.98 kB / 472.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.09636, allocations: 15.94 kB / 472.8 MB, free: 9.715 MB / 350.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.0001256/0.09649, allocations: 153.8 kB / 473 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/0.09654, allocations: 19.75 kB / 473 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003396/0.09689, allocations: 235.3 kB / 473.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.0969, allocations: 0 / 473.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.09691, allocations: 0 / 473.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.09692, allocations: 7.938 kB / 473.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.09805, allocations: 0.9441 MB / 474.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.09806, allocations: 12.03 kB / 474.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.0982, allocations: 31.98 kB / 474.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.09821, allocations: 4 kB / 474.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.09824, allocations: 15.92 kB / 474.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.09825, allocations: 11.94 kB / 474.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.09826, allocations: 4 kB / 474.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.09861, allocations: 408.9 kB / 474.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.599e-05/0.09868, allocations: 104.8 kB / 474.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.09872, allocations: 11.94 kB / 474.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.09889, allocations: 11.98 kB / 474.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.09893, allocations: 27.92 kB / 474.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.09895, allocations: 12 kB / 474.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.09906, allocations: 151 kB / 474.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.09907, allocations: 0 / 474.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00034/0.09942, allocations: 55.94 kB / 475 MB, free: 7.316 MB / 350.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.0005433/0.09997, allocations: 0.9505 MB / 475.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.1003, allocations: 219.5 kB / 476.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1003, allocations: 0 / 476.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1004, allocations: 101.1 kB / 476.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.1009, allocations: 47.84 kB / 476.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.1034, allocations: 2.77 MB / 479.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.1037, allocations: 0.7596 MB / 479.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.1038, allocations: 49.5 kB / 479.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.104, allocations: 67.41 kB / 480 MB, free: 2.031 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.104, allocations: 0 / 480 MB, free: 2.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2635/0.3675, allocations: 3.745 MB / 483.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/0.3677, allocations: 221 kB / 483.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.96, allocations: 0 / 483.9 MB, free: 14.14 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches