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.00151/0.00151, allocations: 104.9 kB / 16.92 MB, free: 5.781 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.001669/0.001669, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.264/1.264, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1689/0.1689, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.2 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09892, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005779/0.1047, allocations: 3.304 MB / 460.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.1069, allocations: 1.228 MB / 461.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002861/0.1073, allocations: 11.94 kB / 461.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008096/0.1081, allocations: 151.3 kB / 461.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006281/0.1087, allocations: 179.2 kB / 461.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.1092, allocations: 131.6 kB / 462 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005438/0.1097, allocations: 279 kB / 462.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.1101, allocations: 118.2 kB / 462.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.1103, allocations: 127.4 kB / 462.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1105, allocations: 103.6 kB / 462.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.1106, allocations: 12 kB / 462.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003982/0.111, allocations: 231.4 kB / 462.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.158e-05/0.1111, allocations: 63.81 kB / 462.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1112, allocations: 99.47 kB / 463 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004205/0.1116, allocations: 287.2 kB / 463.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1116, allocations: 0 / 463.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1117, allocations: 0 / 463.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.1117, allocations: 0 / 463.3 MB, free: 1.645 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.0007839/0.1125, allocations: 0.495 MB / 463.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.1125, allocations: 15.89 kB / 463.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.897e-05/0.1126, allocations: 54.72 kB / 463.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008209/0.1134, allocations: 72.67 kB / 463.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.1138, allocations: 260.6 kB / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1138, allocations: 12.7 kB / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.1139, allocations: 20.38 kB / 464.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000426/0.1143, allocations: 275.8 kB / 464.5 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.1144, allocations: 4 kB / 464.5 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.1144, allocations: 4 kB / 464.5 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/0.1144, allocations: 16.31 kB / 464.5 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003757/0.1148, allocations: 224 kB / 464.7 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.1164, allocations: 1.21 MB / 465.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002277/0.1167, allocations: 137.1 kB / 466 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.289e-05/0.1168, allocations: 45.86 kB / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1168, allocations: 3.984 kB / 466.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.1168, allocations: 42.56 kB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.023e-06/0.1168, allocations: 0 / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003658/0.1172, allocations: 169.3 kB / 466.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.1173, allocations: 81.11 kB / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.1175, allocations: 206.8 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1175, allocations: 29.7 kB / 466.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1176, allocations: 148 kB / 466.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/0.1177, allocations: 51.34 kB / 466.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-05/0.1177, allocations: 41.83 kB / 466.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1179, allocations: 326.8 kB / 467.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.485e-05/0.118, allocations: 43.97 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.1181, allocations: 133.4 kB / 467.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.1183, allocations: 186.1 kB / 467.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1183, allocations: 0 / 467.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002984/0.1186, allocations: 205.3 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1186, allocations: 8 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1187, allocations: 4 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1187, allocations: 11.92 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.1189, allocations: 43.92 kB / 467.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009487/0.1199, allocations: 1.424 MB / 469.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.12, allocations: 23.78 kB / 469.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.12, allocations: 8 kB / 469.2 MB, free: 11.14 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.0001346/0.1202, allocations: 149.8 kB / 469.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.1202, allocations: 15.81 kB / 469.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.1204, allocations: 138.9 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1205, allocations: 4 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1205, allocations: 0 / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.1205, allocations: 3.984 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006776/0.1211, allocations: 499.9 kB / 470 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1212, allocations: 3.984 kB / 470 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.1213, allocations: 31.98 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1214, allocations: 4 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.1214, allocations: 96 / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008184/0.1222, allocations: 1.428 MB / 471.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1222, allocations: 0 / 471.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.1225, allocations: 309.2 kB / 471.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.1226, allocations: 92.94 kB / 471.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.1226, allocations: 8 kB / 471.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.079e-05/0.1227, allocations: 0 / 471.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.1227, allocations: 16.05 kB / 471.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.1228, allocations: 4 kB / 471.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001128/0.1229, allocations: 148.6 kB / 472.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1229, allocations: 0 / 472.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1232, allocations: 51.84 kB / 472.1 MB, free: 8.004 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.000553/0.1238, allocations: 0.839 MB / 473 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.1241, allocations: 143.7 kB / 473.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1241, allocations: 0.75 kB / 473.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.1243, allocations: 63.97 kB / 473.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.1246, allocations: 26.05 kB / 473.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.1271, allocations: 2.334 MB / 475.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.1274, allocations: 0.7476 MB / 476.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.562e-05/0.1275, allocations: 29.52 kB / 476.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.02e-05/0.1276, allocations: 55.61 kB / 476.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1276, allocations: 4 kB / 476.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.1501, allocations: 3.707 MB / 480.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.48, allocations: 21.98 kB / 480.1 MB, free: 15.94 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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