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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 116.2 kB / 18.49 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 214.9 kB / 21.46 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.582/1.582, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1908/0.1908, allocations: 38.51 MB / 349.4 MB, free: 2.617 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 69.22 kB / 487.8 MB, free: 32.17 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1103, allocations: 62.43 MB / 0.5374 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005619/0.1159, allocations: 3.356 MB / 0.5406 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.118, allocations: 1.282 MB / 0.5419 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.1181, allocations: 7.938 kB / 0.5419 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.1187, allocations: 163.3 kB / 0.5421 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000449/0.1192, allocations: 171.2 kB / 0.5422 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003403/0.1195, allocations: 131.6 kB / 0.5423 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.1199, allocations: 291 kB / 0.5426 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.1202, allocations: 98.23 kB / 0.5427 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.1204, allocations: 135.5 kB / 0.5428 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.1206, allocations: 115.5 kB / 0.543 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.1206, allocations: 12 kB / 0.543 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003763/0.121, allocations: 239.4 kB / 0.5432 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.58e-05/0.1211, allocations: 59.81 kB / 0.5433 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1212, allocations: 95.48 kB / 0.5433 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.1216, allocations: 290.9 kB / 0.5436 GB, free: 3.105 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1216, allocations: 0 / 0.5436 GB, free: 3.105 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1216, allocations: 0 / 0.5436 GB, free: 3.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.1216, allocations: 0 / 0.5436 GB, free: 3.105 MB / 398.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.0007103/0.1223, allocations: 0.5011 MB / 0.5441 GB, free: 2.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1224, allocations: 8.031 kB / 0.5441 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.081e-05/0.1224, allocations: 12.45 kB / 0.5441 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.844e-05/0.1225, allocations: 58.67 kB / 0.5442 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006984/0.1232, allocations: 76.72 kB / 0.5443 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.1235, allocations: 271.8 kB / 0.5445 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.1236, allocations: 12.7 kB / 0.5445 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.111e-05/0.1236, allocations: 20.12 kB / 0.5445 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.1241, allocations: 275.8 kB / 0.5448 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1241, allocations: 0 / 0.5448 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.1241, allocations: 8 kB / 0.5448 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.1241, allocations: 12.31 kB / 0.5448 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.1245, allocations: 224.1 kB / 0.545 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1262, allocations: 1.206 MB / 0.5462 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.1264, allocations: 129.1 kB / 0.5463 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.47e-05/0.1265, allocations: 49.84 kB / 0.5464 GB, free: 24 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.1265, allocations: 0 / 0.5464 GB, free: 24 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.1266, allocations: 38.5 kB / 0.5464 GB, free: 15.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.1266, allocations: 0 / 0.5464 GB, free: 15.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003992/0.127, allocations: 169.4 kB / 0.5466 GB, free: 15.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.1271, allocations: 81.05 kB / 0.5467 GB, free: 15.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.1273, allocations: 206.8 kB / 0.5469 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.1273, allocations: 29.7 kB / 0.5469 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1274, allocations: 156.1 kB / 0.547 GB, free: 15.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.1275, allocations: 51.7 kB / 0.5471 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/0.1275, allocations: 41.7 kB / 0.5471 GB, free: 15.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1277, allocations: 330.8 kB / 0.5474 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-05/0.1278, allocations: 39.98 kB / 0.5475 GB, free: 14.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.1279, allocations: 122.3 kB / 0.5476 GB, free: 14.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.1282, allocations: 178.1 kB / 0.5478 GB, free: 14.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1282, allocations: 4 kB / 0.5478 GB, free: 14.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003378/0.1285, allocations: 209.7 kB / 0.548 GB, free: 14.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1285, allocations: 8 kB / 0.548 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1285, allocations: 3.938 kB / 0.548 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.1286, allocations: 4 kB / 0.548 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.1288, allocations: 51.91 kB / 0.548 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.13, allocations: 1.424 MB / 0.5494 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1302, allocations: 15.89 kB / 0.5494 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.1302, allocations: 8 kB / 0.5495 GB, free: 12.6 MB / 414.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.0001619/0.1303, allocations: 157.8 kB / 0.5496 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.64e-05/0.1304, allocations: 19.86 kB / 0.5496 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.1307, allocations: 147 kB / 0.5498 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1307, allocations: 3.938 kB / 0.5498 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1307, allocations: 4 kB / 0.5498 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1307, allocations: 0 / 0.5498 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007864/0.1315, allocations: 496 kB / 0.5502 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1315, allocations: 0 / 0.5502 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.1317, allocations: 35.92 kB / 0.5503 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1317, allocations: 0 / 0.5503 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1317, allocations: 4 kB / 0.5503 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.1327, allocations: 1.428 MB / 0.5517 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1327, allocations: 0 / 0.5517 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.1331, allocations: 302 kB / 0.552 GB, free: 9.781 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.1332, allocations: 105 kB / 0.5521 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.1332, allocations: 0 / 0.5521 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.772e-05/0.1333, allocations: 4 kB / 0.5521 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.1333, allocations: 15.92 kB / 0.5521 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.1333, allocations: 4 kB / 0.5521 GB, free: 9.637 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.1335, allocations: 148.7 kB / 0.5522 GB, free: 9.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1335, allocations: 0 / 0.5522 GB, free: 9.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003693/0.1338, allocations: 51.89 kB / 0.5523 GB, free: 9.441 MB / 414.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.0007656/0.1346, allocations: 0.8398 MB / 0.5531 GB, free: 8.566 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.135, allocations: 119.8 kB / 0.5532 GB, free: 8.449 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.135, allocations: 0 / 0.5532 GB, free: 8.449 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.1351, allocations: 56.72 kB / 0.5533 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.1356, allocations: 39.89 kB / 0.5533 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.1388, allocations: 2.369 MB / 0.5556 GB, free: 5.824 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.1391, allocations: 0.7398 MB / 0.5563 GB, free: 5.059 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.1392, allocations: 29.52 kB / 0.5564 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.1394, allocations: 59.42 kB / 0.5564 GB, free: 4.969 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1394, allocations: 0 / 0.5564 GB, free: 4.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.1622, allocations: 3.883 MB / 0.5602 GB, free: 1.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.34, allocations: 2.5 kB / 0.5602 GB, free: 1.242 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.561104554974008]