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.001669/0.001669, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.002179/0.002179, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.506/1.506, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.1833/0.1833, allocations: 38.56 MB / 353.3 MB, free: 12.32 MB / 286.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.002003/0.002003, allocations: 67.91 kB / 493.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3794, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005257/0.3846, allocations: 3.305 MB / 0.5459 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.3865, allocations: 1.163 MB / 0.5471 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.3866, allocations: 10.81 kB / 0.5471 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006303/0.3873, allocations: 163 kB / 0.5472 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.3876, allocations: 178.7 kB / 0.5474 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.388, allocations: 131 kB / 0.5475 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000385/0.3884, allocations: 292.2 kB / 0.5478 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.3887, allocations: 119.6 kB / 0.5479 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.3889, allocations: 132.8 kB / 0.548 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.3891, allocations: 122.5 kB / 0.5482 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.3892, allocations: 12.75 kB / 0.5482 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003254/0.3895, allocations: 191.9 kB / 0.5484 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.145e-05/0.3896, allocations: 63.62 kB / 0.5484 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.963e-05/0.3897, allocations: 72.61 kB / 0.5485 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.3901, allocations: 292.4 kB / 0.5488 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3901, allocations: 4 kB / 0.5488 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3901, allocations: 0 / 0.5488 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3901, allocations: 1.188 kB / 0.5488 GB, free: 11.66 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.0006638/0.3908, allocations: 432.1 kB / 0.5492 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.3908, allocations: 17.83 kB / 0.5492 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.513e-05/0.3908, allocations: 4.953 kB / 0.5492 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.653e-05/0.3909, allocations: 53.27 kB / 0.5493 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006883/0.3916, allocations: 77.84 kB / 0.5493 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/0.3919, allocations: 196.7 kB / 0.5495 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.3919, allocations: 27.78 kB / 0.5495 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.392, allocations: 19.12 kB / 0.5496 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005135/0.3925, allocations: 259.7 kB / 0.5498 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.3925, allocations: 1.125 kB / 0.5498 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.3926, allocations: 10.02 kB / 0.5498 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.3926, allocations: 14.45 kB / 0.5498 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000405/0.393, allocations: 221.7 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.3948, allocations: 1.122 MB / 0.5511 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.395, allocations: 127.9 kB / 0.5513 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.084e-05/0.3951, allocations: 43.45 kB / 0.5513 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.3951, allocations: 1.469 kB / 0.5513 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.3952, allocations: 33.62 kB / 0.5513 GB, free: 9.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 2.895e-06/0.3952, allocations: 0 / 0.5513 GB, free: 9.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004341/0.3956, allocations: 171.1 kB / 0.5515 GB, free: 9.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.3957, allocations: 78.3 kB / 0.5516 GB, free: 9.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.3959, allocations: 205.8 kB / 0.5518 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.3959, allocations: 35.14 kB / 0.5518 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.3961, allocations: 158 kB / 0.552 GB, free: 8.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.739e-05/0.3961, allocations: 50.27 kB / 0.552 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/0.3962, allocations: 39.48 kB / 0.552 GB, free: 8.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3964, allocations: 328.3 kB / 0.5524 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.226e-05/0.3965, allocations: 47 kB / 0.5524 GB, free: 8.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.3966, allocations: 122.8 kB / 0.5525 GB, free: 8.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.3969, allocations: 182.9 kB / 0.5527 GB, free: 8.258 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3969, allocations: 1.281 kB / 0.5527 GB, free: 8.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000319/0.3972, allocations: 218.9 kB / 0.5529 GB, free: 8.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3972, allocations: 6.312 kB / 0.5529 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.3972, allocations: 7.156 kB / 0.5529 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3972, allocations: 4.406 kB / 0.5529 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.3975, allocations: 49.88 kB / 0.553 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.3986, allocations: 1.313 MB / 0.5542 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.3988, allocations: 22.25 kB / 0.5543 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.3988, allocations: 7.5 kB / 0.5543 GB, free: 6.75 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.0001529/0.3989, allocations: 143.6 kB / 0.5544 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.399, allocations: 16.25 kB / 0.5544 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000296/0.3993, allocations: 143.2 kB / 0.5546 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3993, allocations: 2.188 kB / 0.5546 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.3993, allocations: 0 / 0.5546 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3993, allocations: 1.125 kB / 0.5546 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008545/0.4001, allocations: 463.4 kB / 0.555 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.4001, allocations: 5.125 kB / 0.555 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.4003, allocations: 35.19 kB / 0.555 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.4003, allocations: 2.281 kB / 0.5551 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.4004, allocations: 6.234 kB / 0.5551 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.4014, allocations: 1.317 MB / 0.5563 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4014, allocations: 1.719 kB / 0.5563 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003555/0.4017, allocations: 313.4 kB / 0.5566 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.4018, allocations: 23.12 kB / 0.5567 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.4018, allocations: 1.469 kB / 0.5567 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.501e-05/0.4019, allocations: 1.75 kB / 0.5567 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.886e-05/0.4019, allocations: 16.25 kB / 0.5567 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.4019, allocations: 3.969 kB / 0.5567 GB, free: 4.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.4021, allocations: 145.5 kB / 0.5568 GB, free: 4.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4021, allocations: 0 / 0.5568 GB, free: 4.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.4024, allocations: 50.52 kB / 0.5569 GB, free: 4.34 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.0006401/0.4031, allocations: 0.8488 MB / 0.5577 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003481/0.4034, allocations: 121.3 kB / 0.5578 GB, free: 3.512 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4034, allocations: 3.938 kB / 0.5578 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.4036, allocations: 52.59 kB / 0.5579 GB, free: 3.488 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000406/0.404, allocations: 36.22 kB / 0.5579 GB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.4068, allocations: 2.364 MB / 0.5602 GB, free: 1.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001752/0.407, allocations: 136.9 kB / 0.5603 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.4071, allocations: 25.62 kB / 0.5604 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.4072, allocations: 67.41 kB / 0.5604 GB, free: 1.199 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4072, allocations: 0 / 0.5604 GB, free: 1.199 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.4324, allocations: 4.039 MB / 0.5644 GB, free: 13.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.52, allocations: 4.062 kB / 0.5644 GB, free: 13.31 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.591011877986602]