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.006485/0.006485, allocations: 100.9 kB / 15.73 MB, free: 6 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.001402/0.001403, allocations: 189.5 kB / 16.67 MB, free: 5.934 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.427/1.427, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06816/0.06816, allocations: 14.17 MB / 284.1 MB, free: 6.988 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.003169/0.003169, allocations: 62.09 kB / 398.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2801, allocations: 50.14 MB / 448.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE): time 0.001694/0.2818, allocations: 0.6992 MB / 448.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000152/0.282, allocations: 30.56 kB / 449 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.259e-05/0.282, allocations: 0 / 449 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.67e-05/0.282, allocations: 3.938 kB / 449 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.567e-05/0.2821, allocations: 0 / 449 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001234/0.2822, allocations: 11.02 kB / 449 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.326e-05/0.2823, allocations: 24.55 kB / 449 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.241e-05/0.2824, allocations: 11.06 kB / 449 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.108e-05/0.2824, allocations: 1.969 kB / 449 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.163e-05/0.2825, allocations: 15.78 kB / 449 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.2825, allocations: 0 / 449 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.091e-06/0.2825, allocations: 1.938 kB / 449 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.2825, allocations: 2 kB / 449 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.504e-05/0.2826, allocations: 6 kB / 449.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.605e-05/0.2826, allocations: 15.69 kB / 449.1 MB, free: 2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2826, allocations: 0 / 449.1 MB, free: 2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2826, allocations: 0 / 449.1 MB, free: 2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.2827, allocations: 1.75 kB / 449.1 MB, free: 2 MB / 318.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.0002312/0.2829, allocations: 350.9 kB / 449.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.2829, allocations: 9.938 kB / 449.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.445e-05/0.283, allocations: 30.75 kB / 449.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.283, allocations: 2.688 kB / 449.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.914e-05/0.283, allocations: 160.4 kB / 449.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.2831, allocations: 6.188 kB / 449.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.2831, allocations: 2.031 kB / 449.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.419e-05/0.2832, allocations: 42.31 kB / 449.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2832, allocations: 3.938 kB / 449.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.2832, allocations: 9.266 kB / 449.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2832, allocations: 0 / 449.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.248e-05/0.2832, allocations: 13.45 kB / 449.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003126/0.2836, allocations: 247 kB / 449.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.589e-05/0.2836, allocations: 32.36 kB / 450 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.072e-05/0.2837, allocations: 16.61 kB / 450 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.2837, allocations: 7.938 kB / 450 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.693e-05/0.2837, allocations: 32.12 kB / 450 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2837, allocations: 0 / 450 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001872/0.2839, allocations: 89.23 kB / 450.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.2839, allocations: 82.53 kB / 450.2 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.701e-05/0.2839, allocations: 89.86 kB / 450.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.284, allocations: 26.89 kB / 450.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.594e-05/0.284, allocations: 88.22 kB / 450.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.284, allocations: 5.359 kB / 450.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.707e-05/0.284, allocations: 22.09 kB / 450.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.663e-05/0.2841, allocations: 314.8 kB / 450.7 MB, free: 200 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.146e-05/0.2841, allocations: 12.3 kB / 450.7 MB, free: 192 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.491e-05/0.2841, allocations: 5.531 kB / 450.7 MB, free: 192 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.789e-05/0.2842, allocations: 74.48 kB / 450.8 MB, free: 112 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2842, allocations: 0 / 450.8 MB, free: 112 kB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.389e-05/0.2843, allocations: 89.89 kB / 450.9 MB, free: 24 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.329e-05/0.2843, allocations: 31.27 kB / 450.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.2843, allocations: 1.75 kB / 450.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.2844, allocations: 0 / 450.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.418e-05/0.2844, allocations: 5.328 kB / 450.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.2844, allocations: 0 / 450.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.844e-05/0.2844, allocations: 6.688 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.2845, allocations: 1.344 kB / 450.9 MB, free: 15.98 MB / 334.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 9.783e-05/0.2846, allocations: 146.2 kB / 451.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.2846, allocations: 2.844 kB / 451.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.47e-05/0.2846, allocations: 7.109 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.2846, allocations: 0 / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2846, allocations: 1.656 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.2846, allocations: 0 / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.2848, allocations: 160.3 kB / 451.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2848, allocations: 0 / 451.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.749e-06/0.2848, allocations: 1.625 kB / 451.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2848, allocations: 1.531 kB / 451.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.2848, allocations: 0 / 451.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2849, allocations: 5.75 kB / 451.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.2849, allocations: 3.938 kB / 451.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.285, allocations: 178.2 kB / 451.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.2851, allocations: 82.47 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.2851, allocations: 5.156 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.16e-05/0.2852, allocations: 2.406 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.2852, allocations: 1.125 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.2852, allocations: 5.469 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.4e-05/0.2853, allocations: 75.28 kB / 451.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2853, allocations: 0 / 451.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.2855, allocations: 9.547 kB / 451.6 MB, free: 15.25 MB / 334.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.000516/0.286, allocations: 0.7177 MB / 452.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.2862, allocations: 78.52 kB / 452.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2862, allocations: 0 / 452.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.082e-05/0.2863, allocations: 65.03 kB / 452.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.2865, allocations: 10.67 kB / 452.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.2869, allocations: 123.2 kB / 452.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.2872, allocations: 0.6755 MB / 453.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.084e-05/0.2872, allocations: 0 / 453.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.43e-05/0.2872, allocations: 12.94 kB / 453.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2872, allocations: 0 / 453.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.3097, allocations: 1.334 MB / 454.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.386, allocations: 1.625 kB / 454.6 MB, free: 12.69 MB / 334.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 & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PowerGrids_PowerGrids_Electrical_Test_TestExciterRectifierRegulationCharacteristicIEEE.fmu > PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:exciterRectifierRegulationCharacteristicIEEE.y,realExpression.y,time Variables in the result:time,exciterRectifierRegulationCharacteristicIEEE.y,realExpression.y,exciterRectifierRegulationCharacteristicIEEE.u