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.001122/0.001122, allocations: 115.6 kB / 16.63 MB, free: 6.332 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.001306/0.001306, allocations: 190 kB / 17.55 MB, free: 5.801 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.304/1.304, allocations: 222.9 MB / 241.2 MB, free: 13.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1693/0.1693, allocations: 38.02 MB / 329.4 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 59.5 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09509/0.09649, allocations: 58.07 MB / 456.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005172/0.1017, allocations: 3.563 MB / 460 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1036, allocations: 1.275 MB / 461.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002675/0.1039, allocations: 15.88 kB / 461.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006726/0.1046, allocations: 147.4 kB / 461.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000495/0.1051, allocations: 163.4 kB / 461.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.1055, allocations: 119.7 kB / 461.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004031/0.1059, allocations: 279 kB / 462 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.1063, allocations: 130.2 kB / 462.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.1065, allocations: 123.4 kB / 462.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.1067, allocations: 119.5 kB / 462.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.1068, allocations: 12 kB / 462.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003749/0.1071, allocations: 227.4 kB / 462.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.957e-05/0.1072, allocations: 55.83 kB / 462.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.1074, allocations: 103.5 kB / 462.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.1078, allocations: 299.1 kB / 463 MB, free: 1.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1078, allocations: 3.938 kB / 463 MB, free: 1.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1078, allocations: 0 / 463 MB, free: 1.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1078, allocations: 0 / 463 MB, free: 1.672 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.0007316/0.1086, allocations: 0.5027 MB / 463.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1086, allocations: 11.89 kB / 463.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.1087, allocations: 50.73 kB / 463.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006958/0.1094, allocations: 72.67 kB / 463.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.1097, allocations: 264.6 kB / 463.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.1097, allocations: 12.69 kB / 464 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-05/0.1098, allocations: 20.38 kB / 464 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004185/0.1102, allocations: 279.8 kB / 464.2 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1103, allocations: 0 / 464.2 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.1103, allocations: 4 kB / 464.3 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.1103, allocations: 20.27 kB / 464.3 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.1106, allocations: 227.9 kB / 464.5 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.1122, allocations: 1.202 MB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.1124, allocations: 137.2 kB / 465.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.878e-05/0.1125, allocations: 45.77 kB / 465.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.1125, allocations: 4 kB / 465.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.1125, allocations: 30.56 kB / 465.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.1125, allocations: 0 / 465.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003275/0.1129, allocations: 169.4 kB / 466.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.1129, allocations: 85.14 kB / 466.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.1131, allocations: 206.8 kB / 466.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.1131, allocations: 33.7 kB / 466.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.101e-05/0.1132, allocations: 151.8 kB / 466.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.1133, allocations: 43.45 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-05/0.1133, allocations: 37.7 kB / 466.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1135, allocations: 326.8 kB / 466.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.28e-05/0.1136, allocations: 43.98 kB / 467 MB, free: 13.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.1137, allocations: 132.9 kB / 467.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.1139, allocations: 190 kB / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1139, allocations: 0 / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002922/0.1142, allocations: 209.5 kB / 467.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1142, allocations: 4.344 kB / 467.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1143, allocations: 8 kB / 467.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1143, allocations: 7.938 kB / 467.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.1145, allocations: 43.97 kB / 467.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009737/0.1155, allocations: 1.424 MB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.1156, allocations: 23.78 kB / 469 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.1157, allocations: 12 kB / 469 MB, free: 11.17 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.0001251/0.1158, allocations: 141.8 kB / 469.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.1158, allocations: 19.91 kB / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.1161, allocations: 146.9 kB / 469.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1161, allocations: 4 kB / 469.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1161, allocations: 0 / 469.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1161, allocations: 0 / 469.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006129/0.1167, allocations: 0.492 MB / 469.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1167, allocations: 0 / 469.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1169, allocations: 32.05 kB / 469.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.1169, allocations: 7.984 kB / 469.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.1169, allocations: 0 / 469.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008029/0.1177, allocations: 1.424 MB / 471.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1177, allocations: 0 / 471.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.1181, allocations: 309.8 kB / 471.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.158e-05/0.1181, allocations: 92.95 kB / 471.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.1181, allocations: 4 kB / 471.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-05/0.1182, allocations: 0 / 471.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.1183, allocations: 11.98 kB / 471.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.1183, allocations: 8 kB / 471.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001175/0.1184, allocations: 147.2 kB / 471.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1184, allocations: 8 kB / 471.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.1188, allocations: 51.84 kB / 471.9 MB, free: 8.023 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.00057/0.1193, allocations: 0.839 MB / 472.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.1197, allocations: 131.8 kB / 472.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1197, allocations: 0 / 472.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.1198, allocations: 63.84 kB / 472.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.1202, allocations: 35.94 kB / 473 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.1227, allocations: 2.406 MB / 475.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.123, allocations: 0.7437 MB / 476.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.941e-05/0.1231, allocations: 29.53 kB / 476.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.82e-05/0.1232, allocations: 55.41 kB / 476.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1232, allocations: 0 / 476.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.1401, allocations: 3.628 MB / 479.8 MB, free: 32 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.1404, allocations: 242 kB / 480.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/1.912, allocations: 3.938 kB / 480.1 MB, free: 15.77 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