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.001028/0.001028, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.0009815/0.0009816, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.234/1.234, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1698/0.1698, allocations: 38.02 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 64.72 kB / 398.4 MB, free: 34.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1093, allocations: 58.06 MB / 456.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005555/0.1149, allocations: 3.708 MB / 460.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.1172, allocations: 1.555 MB / 461.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/0.1175, allocations: 11.94 kB / 461.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009008/0.1184, allocations: 231.2 kB / 461.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007582/0.1192, allocations: 267.1 kB / 462.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1196, allocations: 115.7 kB / 462.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.12, allocations: 343 kB / 462.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003527/0.1204, allocations: 153.9 kB / 462.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.1207, allocations: 151.4 kB / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003024/0.121, allocations: 167.4 kB / 463.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.063e-05/0.121, allocations: 16 kB / 463.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006442/0.1217, allocations: 335.1 kB / 463.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.1219, allocations: 95.77 kB / 463.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.122, allocations: 111.5 kB / 463.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006362/0.1227, allocations: 374.9 kB / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1227, allocations: 0 / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1227, allocations: 0 / 464 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1227, allocations: 4 kB / 464 MB, free: 0.7109 MB / 334.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.000691/0.1234, allocations: 0.5141 MB / 464.5 MB, free: 152 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.1234, allocations: 11.89 kB / 464.6 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.569e-05/0.1235, allocations: 62.66 kB / 464.6 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008815/0.1244, allocations: 92.55 kB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.1247, allocations: 262.7 kB / 465 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1247, allocations: 16.33 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.1248, allocations: 24.36 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004577/0.1252, allocations: 321.8 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1253, allocations: 0 / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.31e-05/0.1253, allocations: 4 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.942e-05/0.1254, allocations: 23.98 kB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/0.1258, allocations: 283.8 kB / 465.6 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.1274, allocations: 1.279 MB / 466.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.1278, allocations: 229.1 kB / 467.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.128, allocations: 97.73 kB / 467.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.128, allocations: 15.91 kB / 467.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.128, allocations: 42.56 kB / 467.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.776e-06/0.1281, allocations: 0 / 467.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007253/0.1288, allocations: 436.3 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.1288, allocations: 81.11 kB / 467.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.129, allocations: 202.3 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.129, allocations: 25.7 kB / 468 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.041e-05/0.1291, allocations: 164 kB / 468.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.1292, allocations: 55.2 kB / 468.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-05/0.1293, allocations: 49.69 kB / 468.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1294, allocations: 326.8 kB / 468.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.1295, allocations: 87.95 kB / 468.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1297, allocations: 162 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.13, allocations: 260.3 kB / 469.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.13, allocations: 4 kB / 469.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004134/0.1305, allocations: 291.7 kB / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1305, allocations: 8 kB / 469.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1305, allocations: 7.938 kB / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1305, allocations: 4 kB / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.1307, allocations: 55.91 kB / 469.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.1308, allocations: 4 kB / 469.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.1309, allocations: 11.98 kB / 469.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.1309, allocations: 15.98 kB / 469.5 MB, free: 10.89 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.0001395/0.1311, allocations: 149.8 kB / 469.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.1311, allocations: 23.72 kB / 469.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003652/0.1315, allocations: 239.2 kB / 469.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1315, allocations: 4 kB / 469.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1315, allocations: 0 / 469.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1315, allocations: 0 / 469.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.1329, allocations: 0.9517 MB / 470.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1329, allocations: 4 kB / 470.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.133, allocations: 39.92 kB / 470.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.1331, allocations: 4 kB / 470.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.1331, allocations: 15.92 kB / 470.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1331, allocations: 4 kB / 470.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/0.1331, allocations: 7.938 kB / 470.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.1335, allocations: 415.6 kB / 471.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.641e-05/0.1336, allocations: 100.9 kB / 471.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.1337, allocations: 15.94 kB / 471.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.1338, allocations: 11.98 kB / 471.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.1339, allocations: 27.86 kB / 471.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1339, allocations: 8 kB / 471.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001156/0.134, allocations: 151 kB / 471.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.134, allocations: 0 / 471.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003605/0.1344, allocations: 56 kB / 471.7 MB, free: 8.488 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.0006612/0.1351, allocations: 0.9442 MB / 472.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.1354, allocations: 219.7 kB / 472.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1354, allocations: 4.5 kB / 472.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.1356, allocations: 95.83 kB / 472.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.136, allocations: 61.19 kB / 473 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.1392, allocations: 2.746 MB / 475.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.1396, allocations: 0.7632 MB / 476.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.1398, allocations: 57.48 kB / 476.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.1399, allocations: 67.41 kB / 476.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1399, allocations: 0 / 476.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.1539, allocations: 3.96 MB / 480.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.1541, allocations: 211.7 kB / 480.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/1.94, allocations: 4 kB / 480.8 MB, free: 15.1 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","/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