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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1873/0.1873, allocations: 38.51 MB / 342.5 MB, free: 8.094 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 70.81 kB / 478.6 MB, free: 33.29 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.109, allocations: 61.24 MB / 0.5272 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005073/0.1141, allocations: 3.352 MB / 0.5305 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.116, allocations: 1.224 MB / 0.5317 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.1161, allocations: 7.938 kB / 0.5317 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006157/0.1167, allocations: 167.2 kB / 0.5318 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004171/0.1171, allocations: 183.2 kB / 0.532 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.1174, allocations: 127.7 kB / 0.5321 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.1178, allocations: 290.9 kB / 0.5324 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.1181, allocations: 98.23 kB / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.1183, allocations: 123.5 kB / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.1185, allocations: 115.5 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1185, allocations: 16 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003997/0.1189, allocations: 243.4 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.127e-05/0.119, allocations: 59.77 kB / 0.533 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.1191, allocations: 99.52 kB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.1195, allocations: 286.9 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1195, allocations: 0 / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1195, allocations: 0 / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.1195, allocations: 0 / 0.5334 GB, free: 11.02 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.0007085/0.1202, allocations: 0.5062 MB / 0.5339 GB, free: 10.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.1203, allocations: 15.89 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.532e-05/0.1204, allocations: 62.66 kB / 0.534 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006857/0.121, allocations: 76.72 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.1214, allocations: 263.9 kB / 0.5343 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.1214, allocations: 12.7 kB / 0.5343 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.1215, allocations: 20.36 kB / 0.5343 GB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004454/0.1219, allocations: 275.7 kB / 0.5346 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.1219, allocations: 0 / 0.5346 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.122, allocations: 12 kB / 0.5346 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/0.122, allocations: 8.328 kB / 0.5346 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003888/0.1224, allocations: 228.3 kB / 0.5348 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.1242, allocations: 1.206 MB / 0.536 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.1244, allocations: 125.2 kB / 0.5361 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.212e-05/0.1245, allocations: 45.77 kB / 0.5362 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.1245, allocations: 0 / 0.5362 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.1246, allocations: 42.5 kB / 0.5362 GB, free: 7.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.163e-06/0.1246, allocations: 0 / 0.5362 GB, free: 7.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003797/0.1249, allocations: 169.4 kB / 0.5364 GB, free: 7.719 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/0.125, allocations: 85.05 kB / 0.5365 GB, free: 7.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/0.1252, allocations: 199 kB / 0.5367 GB, free: 7.414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1253, allocations: 29.7 kB / 0.5367 GB, free: 7.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.1254, allocations: 160.1 kB / 0.5368 GB, free: 7.219 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.1254, allocations: 51.7 kB / 0.5369 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.914e-05/0.1255, allocations: 41.67 kB / 0.5369 GB, free: 7.121 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1257, allocations: 330.8 kB / 0.5372 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.084e-05/0.1258, allocations: 39.98 kB / 0.5373 GB, free: 6.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.1259, allocations: 129.3 kB / 0.5374 GB, free: 6.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.1262, allocations: 190.4 kB / 0.5376 GB, free: 6.367 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1262, allocations: 0 / 0.5376 GB, free: 6.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000345/0.1265, allocations: 209.2 kB / 0.5378 GB, free: 6.156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.1266, allocations: 8 kB / 0.5378 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1266, allocations: 4 kB / 0.5378 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.1266, allocations: 7.938 kB / 0.5378 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.1268, allocations: 47.91 kB / 0.5378 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.128, allocations: 1.416 MB / 0.5392 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.1281, allocations: 27.83 kB / 0.5393 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.1282, allocations: 8 kB / 0.5393 GB, free: 4.5 MB / 398.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.0001534/0.1283, allocations: 153.8 kB / 0.5394 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.52e-05/0.1284, allocations: 15.91 kB / 0.5394 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.1286, allocations: 131 kB / 0.5395 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1286, allocations: 7.938 kB / 0.5396 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.1286, allocations: 0 / 0.5396 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1286, allocations: 0 / 0.5396 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007333/0.1293, allocations: 0.4921 MB / 0.54 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1293, allocations: 0 / 0.54 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.1295, allocations: 35.92 kB / 0.5401 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1295, allocations: 0 / 0.5401 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1295, allocations: 7.984 kB / 0.5401 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.1307, allocations: 1.42 MB / 0.5415 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1307, allocations: 4.031 kB / 0.5415 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003804/0.131, allocations: 308.1 kB / 0.5418 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.62e-05/0.1311, allocations: 96.91 kB / 0.5419 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.1312, allocations: 8 kB / 0.5419 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.804e-05/0.1312, allocations: 0 / 0.5419 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.1313, allocations: 15.92 kB / 0.5419 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.1313, allocations: 4 kB / 0.5419 GB, free: 1.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.1314, allocations: 156.7 kB / 0.542 GB, free: 1.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1314, allocations: 0 / 0.542 GB, free: 1.402 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003509/0.1318, allocations: 40 kB / 0.5421 GB, free: 1.363 MB / 398.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.0006998/0.1325, allocations: 0.8463 MB / 0.5429 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.1328, allocations: 119.8 kB / 0.543 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1328, allocations: 0 / 0.543 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.133, allocations: 60.72 kB / 0.5431 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.1334, allocations: 27.98 kB / 0.5431 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.1363, allocations: 2.358 MB / 0.5454 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.1368, allocations: 0.7437 MB / 0.5461 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.1369, allocations: 25.53 kB / 0.5461 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.414e-05/0.1369, allocations: 59.86 kB / 0.5462 GB, free: 12.91 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1369, allocations: 0 / 0.5462 GB, free: 12.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.1666, allocations: 3.853 MB / 0.55 GB, free: 9.191 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.78, allocations: 4.234 kB / 0.55 GB, free: 9.188 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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.62327812006697]