Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001192/0.001193, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001451/0.001451, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.472/1.472, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1851/0.1851, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 66.56 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006845/0.1121, allocations: 4.905 MB / 461.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003671/0.1158, allocations: 2.485 MB / 464.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004274/0.1162, allocations: 15.94 kB / 464.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.1176, allocations: 435.6 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.1191, allocations: 0.5096 MB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009271/0.12, allocations: 283.2 kB / 465.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.1211, allocations: 0.736 MB / 466.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005963/0.1217, allocations: 329.6 kB / 466.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005664/0.1222, allocations: 322.7 kB / 467 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006434/0.1229, allocations: 326.8 kB / 467.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.123, allocations: 36 kB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.1244, allocations: 0.6313 MB / 467.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002893/0.1247, allocations: 203.4 kB / 468.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003866/0.1251, allocations: 242.8 kB / 468.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.1264, allocations: 0.7518 MB / 469.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1265, allocations: 4 kB / 469.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1265, allocations: 0 / 469.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.1265, allocations: 4 kB / 469.1 MB, free: 11.75 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001509/0.128, allocations: 0.7683 MB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.1281, allocations: 11.89 kB / 469.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.1282, allocations: 90.69 kB / 470 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001718/0.1299, allocations: 204.1 kB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005435/0.1305, allocations: 366.3 kB / 470.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.1305, allocations: 29.38 kB / 470.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.1306, allocations: 44.36 kB / 470.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000963/0.1316, allocations: 0.6264 MB / 471.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.1316, allocations: 7.891 kB / 471.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/0.1317, allocations: 23.94 kB / 471.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.783e-05/0.1317, allocations: 32.98 kB / 471.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009094/0.1327, allocations: 0.605 MB / 471.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.1359, allocations: 2.253 MB / 474.2 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006093/0.1366, allocations: 486.6 kB / 474.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.1369, allocations: 241.6 kB / 474.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.323e-05/0.1369, allocations: 4 kB / 474.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.1369, allocations: 38.56 kB / 474.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.194e-06/0.137, allocations: 0 / 474.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003387/0.1403, allocations: 1.701 MB / 476.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.1404, allocations: 85.23 kB / 476.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002974/0.1407, allocations: 279 kB / 477 MB, free: 3.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.1408, allocations: 37.7 kB / 477 MB, free: 3.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1409, allocations: 228 kB / 477.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.141, allocations: 153.8 kB / 477.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.1412, allocations: 90.23 kB / 477.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1413, allocations: 346.7 kB / 477.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.1416, allocations: 177 kB / 478 MB, free: 2.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.142, allocations: 290.3 kB / 478.3 MB, free: 2.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/0.1426, allocations: 0.5083 MB / 478.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1427, allocations: 0 / 478.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001225/0.1439, allocations: 0.6885 MB / 479.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1439, allocations: 6.031 kB / 479.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.1439, allocations: 4 kB / 479.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005883/0.1445, allocations: 181.1 kB / 479.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.1449, allocations: 91.83 kB / 479.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003684/0.1486, allocations: 2.801 MB / 482.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.1489, allocations: 23.92 kB / 482.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.1489, allocations: 20 kB / 482.6 MB, free: 13.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002363/0.1492, allocations: 201.7 kB / 482.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.856e-05/0.1492, allocations: 35.56 kB / 482.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.1504, allocations: 0.622 MB / 483.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.1504, allocations: 12 kB / 483.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1505, allocations: 3.938 kB / 483.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1505, allocations: 3.984 kB / 483.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.1527, allocations: 1.355 MB / 484.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1527, allocations: 0 / 484.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.1531, allocations: 79.89 kB / 484.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004549/0.1535, allocations: 144.7 kB / 485.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.1536, allocations: 12 kB / 485.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.1565, allocations: 2.568 MB / 487.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1565, allocations: 0 / 487.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.1579, allocations: 0.9569 MB / 488.6 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.1581, allocations: 108.8 kB / 488.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.875e-05/0.1581, allocations: 19.88 kB / 488.7 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1584, allocations: 11.98 kB / 488.7 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.1584, allocations: 31.95 kB / 488.8 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.1585, allocations: 16 kB / 488.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001963/0.1587, allocations: 201.9 kB / 489 MB, free: 6.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1587, allocations: 0 / 489 MB, free: 6.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006157/0.1593, allocations: 140 kB / 489.1 MB, free: 6.812 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001676/0.161, allocations: 1.5 MB / 490.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.1624, allocations: 0.7396 MB / 491.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.1624, allocations: 0 / 491.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006864/0.1631, allocations: 430.8 kB / 491.8 MB, free: 4.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.1636, allocations: 69.98 kB / 491.8 MB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005803/0.1694, allocations: 4.477 MB / 496.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.1699, allocations: 0.8746 MB / 497.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.1701, allocations: 67.23 kB / 497.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.1703, allocations: 151.4 kB / 497.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1704, allocations: 0 / 497.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.2092, allocations: 9.688 MB / 0.4952 GB, free: 4.676 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.5, allocations: 8 kB / 0.4952 GB, free: 4.668 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_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_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches