Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestExciterRectifierRegulationCharacteristicIEEE",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestExciterRectifierRegulationCharacteristicIEEE",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.001218/0.001218, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001296/0.001296, allocations: 194.8 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06496/0.06496, allocations: 14.16 MB / 283.6 MB, free: 7.27 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 72.47 kB / 346.7 MB, free: 17.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09381/0.09523, allocations: 50.13 MB / 396.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE): time 0.001972/0.09725, allocations: 0.7691 MB / 397.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001637/0.09743, allocations: 27.89 kB / 397.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.121e-05/0.09748, allocations: 4 kB / 397.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.888e-05/0.09751, allocations: 0 / 397.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-05/0.09757, allocations: 0 / 397.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.09772, allocations: 7.938 kB / 397.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.672e-05/0.09781, allocations: 19.98 kB / 397.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.57e-05/0.09791, allocations: 4 kB / 397.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.727e-05/0.09794, allocations: 8 kB / 397.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.937e-05/0.09799, allocations: 7.922 kB / 397.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.09801, allocations: 4 kB / 397.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.103e-06/0.09803, allocations: 4 kB / 397.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.09804, allocations: 4 kB / 397.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.04e-05/0.09808, allocations: 4 kB / 397.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.216e-05/0.09816, allocations: 19.95 kB / 397.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.09817, allocations: 0 / 397.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.09817, allocations: 0 / 397.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.09818, allocations: 0 / 397.8 MB, free: 14.5 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003147/0.0985, allocations: 353.2 kB / 398.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.09855, allocations: 8.031 kB / 398.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.331e-05/0.09858, allocations: 34.75 kB / 398.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.44e-05/0.09862, allocations: 8.875 kB / 398.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.017e-05/0.0987, allocations: 160.4 kB / 398.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.996e-06/0.09872, allocations: 4.359 kB / 398.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.09873, allocations: 8.375 kB / 398.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.09885, allocations: 46.19 kB / 398.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.09886, allocations: 7.922 kB / 398.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.09888, allocations: 0 / 398.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.09888, allocations: 0 / 398.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.037e-05/0.09892, allocations: 11.94 kB / 398.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003783/0.0993, allocations: 256.9 kB / 398.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.293e-05/0.09937, allocations: 34.45 kB / 398.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.66e-05/0.09941, allocations: 12.92 kB / 398.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.691e-06/0.09942, allocations: 4 kB / 398.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.09945, allocations: 34.55 kB / 398.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.09946, allocations: 4 kB / 398.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001914/0.09965, allocations: 79.39 kB / 398.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.0997, allocations: 81.11 kB / 398.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.483e-05/0.09974, allocations: 93.86 kB / 399 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.09976, allocations: 25.7 kB / 399 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.09979, allocations: 80.14 kB / 399.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.09981, allocations: 7.906 kB / 399.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.09985, allocations: 9.719 kB / 399.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.09995, allocations: 330.9 kB / 399.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.006e-05/0.09998, allocations: 4 kB / 399.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.497e-05/0.1, allocations: 8 kB / 399.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.222e-05/0.1001, allocations: 76.25 kB / 399.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1001, allocations: 0 / 399.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.588e-05/0.1002, allocations: 79.34 kB / 399.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.1002, allocations: 37.69 kB / 399.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1002, allocations: 0 / 399.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1002, allocations: 4.094 kB / 399.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.482e-05/0.1003, allocations: 0 / 399.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1003, allocations: 0 / 399.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.448e-05/0.1003, allocations: 7.938 kB / 399.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1003, allocations: 0 / 399.6 MB, free: 12.35 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/0.1004, allocations: 143.5 kB / 399.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.1005, allocations: 7.938 kB / 399.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.1005, allocations: 7.125 kB / 399.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1005, allocations: 0 / 399.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1005, allocations: 4 kB / 399.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1005, allocations: 0 / 399.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.1007, allocations: 153.6 kB / 399.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1007, allocations: 0 / 399.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.508e-06/0.1007, allocations: 0 / 399.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1007, allocations: 0 / 399.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1007, allocations: 7.984 kB / 399.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1007, allocations: 0 / 399.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1007, allocations: 0 / 399.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.1008, allocations: 181.2 kB / 400.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/0.1009, allocations: 77.11 kB / 400.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.1009, allocations: 11.94 kB / 400.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.864e-05/0.101, allocations: 3.938 kB / 400.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.101, allocations: 11.98 kB / 400.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.101, allocations: 0 / 400.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.244e-05/0.1011, allocations: 75.28 kB / 400.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1011, allocations: 0 / 400.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.1013, allocations: 8.031 kB / 400.3 MB, free: 11.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003682/0.1017, allocations: 0.7102 MB / 401 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001218/0.1018, allocations: 83.33 kB / 401.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1018, allocations: 0 / 401.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.482e-05/0.1019, allocations: 75.48 kB / 401.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.1021, allocations: 0 / 401.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.1024, allocations: 134.5 kB / 401.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.1026, allocations: 0.669 MB / 402 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.039e-05/0.1026, allocations: 0 / 402 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.1027, allocations: 11.44 kB / 402 MB, free: 9.766 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1027, allocations: 0 / 402 MB, free: 9.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009819/0.1125, allocations: 1.189 MB / 403.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.1127, allocations: 232.2 kB / 403.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/1.802, allocations: 4 kB / 403.4 MB, free: 8.422 MB / 302.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestExciterRectifierRegulationCharacteristicIEEE_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestExciterRectifierRegulationCharacteristicIEEE.fmu > PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches