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.001181/0.001181, allocations: 109.4 kB / 16.92 MB, free: 6.145 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.001106/0.001106, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.353/1.353, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.176/0.176, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 64.7 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09943, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005608/0.1051, allocations: 3.308 MB / 460.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.107, allocations: 1.232 MB / 461.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.1072, allocations: 7.938 kB / 461.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006491/0.1078, allocations: 163.2 kB / 461.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004733/0.1083, allocations: 163.2 kB / 461.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1087, allocations: 139.6 kB / 462 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.109, allocations: 287 kB / 462.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.1093, allocations: 122.2 kB / 462.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.1096, allocations: 123.5 kB / 462.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.1098, allocations: 107.5 kB / 462.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.966e-05/0.1098, allocations: 16 kB / 462.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003867/0.1102, allocations: 219.4 kB / 462.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-05/0.1103, allocations: 59.81 kB / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.1104, allocations: 95.53 kB / 463 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.1109, allocations: 287.1 kB / 463.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1109, allocations: 7.938 kB / 463.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1109, allocations: 0 / 463.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.111, allocations: 0 / 463.3 MB, free: 1.617 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007221/0.1117, allocations: 0.495 MB / 463.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1117, allocations: 15.89 kB / 463.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.694e-05/0.1118, allocations: 50.73 kB / 463.8 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007775/0.1126, allocations: 72.67 kB / 463.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.1129, allocations: 260.6 kB / 464.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.113, allocations: 16.7 kB / 464.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.113, allocations: 16.38 kB / 464.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.1134, allocations: 271.8 kB / 464.5 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.1135, allocations: 4 kB / 464.5 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.1135, allocations: 8 kB / 464.5 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.1135, allocations: 12.33 kB / 464.5 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000369/0.1139, allocations: 231.9 kB / 464.7 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001539/0.1155, allocations: 1.206 MB / 465.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.1157, allocations: 141.2 kB / 466.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.169e-05/0.1158, allocations: 49.77 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.1158, allocations: 0 / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.1158, allocations: 30.56 kB / 466.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.1158, allocations: 4 kB / 466.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000324/0.1162, allocations: 165.3 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.1162, allocations: 85.23 kB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.1164, allocations: 210.8 kB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1164, allocations: 25.7 kB / 466.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.264e-05/0.1165, allocations: 152 kB / 466.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.1166, allocations: 39.36 kB / 466.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.1166, allocations: 45.7 kB / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1168, allocations: 334.8 kB / 467.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.568e-05/0.1169, allocations: 39.98 kB / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.117, allocations: 132.9 kB / 467.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.1172, allocations: 190.5 kB / 467.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.1172, allocations: 8 kB / 467.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003117/0.1176, allocations: 201.1 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1176, allocations: 8 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.1176, allocations: 352 / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.1176, allocations: 11.94 kB / 467.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.1179, allocations: 51.97 kB / 467.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009462/0.1188, allocations: 1.42 MB / 469.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.1189, allocations: 19.78 kB / 469.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.119, allocations: 11.98 kB / 469.2 MB, free: 11.12 MB / 350.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.0001137/0.1191, allocations: 137.8 kB / 469.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.1191, allocations: 19.8 kB / 469.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.1194, allocations: 151 kB / 469.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1194, allocations: 0 / 469.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.1194, allocations: 4 kB / 469.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1194, allocations: 0 / 469.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006023/0.12, allocations: 0.492 MB / 470 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.12, allocations: 0 / 470 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.1202, allocations: 28.05 kB / 470.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1202, allocations: 4 kB / 470.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1202, allocations: 11.98 kB / 470.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008494/0.1211, allocations: 1.42 MB / 471.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1211, allocations: 4.031 kB / 471.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.1214, allocations: 304.2 kB / 471.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.1215, allocations: 92.95 kB / 471.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.1215, allocations: 4 kB / 471.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.1216, allocations: 4 kB / 471.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.1217, allocations: 7.984 kB / 471.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.1217, allocations: 8 kB / 471.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001303/0.1218, allocations: 148.6 kB / 472.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1218, allocations: 64 / 472.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003399/0.1222, allocations: 55.94 kB / 472.1 MB, free: 7.977 MB / 350.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.000642/0.1228, allocations: 0.8412 MB / 473 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.1232, allocations: 135.8 kB / 473.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1232, allocations: 3.938 kB / 473.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.1233, allocations: 59.84 kB / 473.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.1237, allocations: 31.98 kB / 473.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.1265, allocations: 2.341 MB / 475.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.1268, allocations: 0.7398 MB / 476.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.823e-05/0.1269, allocations: 25.53 kB / 476.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.321e-05/0.127, allocations: 63.41 kB / 476.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.127, allocations: 0 / 476.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.1505, allocations: 3.707 MB / 480.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.23, allocations: 7.875 kB / 480.1 MB, free: 15.92 MB / 366.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