Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.001389/0.001389, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001497/0.001497, allocations: 212.8 kB / 23.74 MB, free: 4.656 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.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1882/0.1882, allocations: 38.52 MB / 352.4 MB, free: 12.58 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.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",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.002023/0.002023, allocations: 71.02 kB / 492.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.305, allocations: 62.46 MB / 0.542 GB, free: 468 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.00637/0.3113, allocations: 5.085 MB / 0.547 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.3151, allocations: 2.562 MB / 0.5495 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.3154, allocations: 17.56 kB / 0.5495 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.3166, allocations: 440.3 kB / 0.5499 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.3177, allocations: 0.5158 MB / 0.5504 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006589/0.3183, allocations: 283.9 kB / 0.5507 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008149/0.3192, allocations: 0.735 MB / 0.5514 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004373/0.3196, allocations: 288.9 kB / 0.5517 GB, free: 8.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004754/0.3201, allocations: 337.6 kB / 0.552 GB, free: 8.648 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004843/0.3206, allocations: 351.1 kB / 0.5523 GB, free: 8.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.3206, allocations: 35.62 kB / 0.5524 GB, free: 8.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.3216, allocations: 0.6516 MB / 0.553 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.3218, allocations: 193.8 kB / 0.5532 GB, free: 7.957 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.3221, allocations: 245.2 kB / 0.5534 GB, free: 7.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.3231, allocations: 0.7715 MB / 0.5542 GB, free: 7.324 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3231, allocations: 0 / 0.5542 GB, free: 7.324 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3231, allocations: 1.125 kB / 0.5542 GB, free: 7.324 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3231, allocations: 4 kB / 0.5542 GB, free: 7.32 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001141/0.3243, allocations: 0.7158 MB / 0.5549 GB, free: 6.738 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3243, allocations: 14.02 kB / 0.5549 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.643e-05/0.3244, allocations: 81.69 kB / 0.555 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/0.326, allocations: 208 kB / 0.5552 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.3266, allocations: 306.4 kB / 0.5554 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.3266, allocations: 40.81 kB / 0.5555 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.3267, allocations: 40.53 kB / 0.5555 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.3277, allocations: 0.6285 MB / 0.5561 GB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/0.3277, allocations: 5.047 kB / 0.5561 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.151e-05/0.3278, allocations: 24.47 kB / 0.5562 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.958e-05/0.3278, allocations: 35.86 kB / 0.5562 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009856/0.3288, allocations: 0.6103 MB / 0.5568 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.3323, allocations: 2.181 MB / 0.5589 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006215/0.333, allocations: 369.5 kB / 0.5593 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.3333, allocations: 213.7 kB / 0.5595 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.3333, allocations: 11.97 kB / 0.5595 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.3334, allocations: 38.56 kB / 0.5595 GB, free: 2.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.783e-06/0.3334, allocations: 0 / 0.5595 GB, free: 2.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003404/0.3368, allocations: 1.562 MB / 0.5611 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.3368, allocations: 81.11 kB / 0.5611 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.3371, allocations: 284.2 kB / 0.5614 GB, free: 352 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.3372, allocations: 37.7 kB / 0.5614 GB, free: 308 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.3373, allocations: 224.6 kB / 0.5617 GB, free: 76 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.3375, allocations: 166.8 kB / 0.5618 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3376, allocations: 82.14 kB / 0.5619 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3378, allocations: 358.6 kB / 0.5622 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.3381, allocations: 172.9 kB / 0.5624 GB, free: 15.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/0.3384, allocations: 289.8 kB / 0.5627 GB, free: 14.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.3392, allocations: 0.5043 MB / 0.5632 GB, free: 14.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.3392, allocations: 12 kB / 0.5632 GB, free: 14.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001247/0.3404, allocations: 0.6697 MB / 0.5638 GB, free: 13.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3404, allocations: 4 kB / 0.5638 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.3404, allocations: 7.984 kB / 0.5638 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005858/0.341, allocations: 172.7 kB / 0.564 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.3414, allocations: 95.81 kB / 0.5641 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.3451, allocations: 2.691 MB / 0.5667 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.3454, allocations: 15.98 kB / 0.5667 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/0.3454, allocations: 27.98 kB / 0.5668 GB, free: 10.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002821/0.3457, allocations: 189.8 kB / 0.567 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.825e-05/0.3458, allocations: 43.69 kB / 0.567 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.3472, allocations: 0.6334 MB / 0.5676 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3472, allocations: 4 kB / 0.5676 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3472, allocations: 3.938 kB / 0.5676 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3472, allocations: 3.984 kB / 0.5676 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002391/0.3496, allocations: 1.32 MB / 0.5689 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.3496, allocations: 0 / 0.5689 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.35, allocations: 83.89 kB / 0.569 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004573/0.3505, allocations: 140.8 kB / 0.5691 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.3505, allocations: 16 kB / 0.5691 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003362/0.3539, allocations: 2.461 MB / 0.5715 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3539, allocations: 208 / 0.5715 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.3555, allocations: 0.9577 MB / 0.5725 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.3556, allocations: 35.8 kB / 0.5725 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.3557, allocations: 15.94 kB / 0.5725 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.3559, allocations: 8 kB / 0.5725 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.194e-05/0.356, allocations: 35.92 kB / 0.5726 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.328e-05/0.356, allocations: 16 kB / 0.5726 GB, free: 4.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002482/0.3563, allocations: 203.1 kB / 0.5728 GB, free: 4.211 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3563, allocations: 0 / 0.5728 GB, free: 4.211 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006835/0.3569, allocations: 140 kB / 0.5729 GB, free: 4.074 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001846/0.3588, allocations: 1.498 MB / 0.5744 GB, free: 2.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.3601, allocations: 0.6461 MB / 0.575 GB, free: 1.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.3601, allocations: 0 / 0.575 GB, free: 1.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.3608, allocations: 407.8 kB / 0.5754 GB, free: 1.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.3613, allocations: 64.56 kB / 0.5755 GB, free: 1.402 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006678/0.368, allocations: 4.471 MB / 0.5798 GB, free: 12.74 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.3686, allocations: 0.863 MB / 0.5807 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000219/0.3689, allocations: 79.2 kB / 0.5807 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.3691, allocations: 143.4 kB / 0.5809 GB, free: 11.63 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3691, allocations: 0 / 0.5809 GB, free: 11.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0436/0.4127, allocations: 10.46 MB / 0.5911 GB, free: 1.316 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.22, allocations: 7.922 kB / 0.5911 GB, free: 1.309 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.031533169094473]