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.009078/0.009078, allocations: 102.4 kB / 15.73 MB, free: 6.023 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.00228/0.00228, allocations: 195.8 kB / 16.67 MB, free: 5.938 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.415/1.415, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0635/0.0635, allocations: 14.17 MB / 284.1 MB, free: 6.953 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.001491/0.001491, allocations: 67.89 kB / 398.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2656, allocations: 50.14 MB / 448.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE): time 0.002177/0.2678, allocations: 0.6993 MB / 448.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001928/0.268, allocations: 25.39 kB / 449 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.706e-05/0.2681, allocations: 1.375 kB / 449 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.776e-05/0.2681, allocations: 0 / 449 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.565e-05/0.2682, allocations: 3.938 kB / 449 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001559/0.2683, allocations: 14.67 kB / 449 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.2685, allocations: 16.25 kB / 449 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2686, allocations: 10.73 kB / 449 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.141e-05/0.2686, allocations: 10.75 kB / 449 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.227e-05/0.2687, allocations: 2.75 kB / 449 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.2687, allocations: 1.375 kB / 449 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.297e-06/0.2687, allocations: 2.75 kB / 449 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.714e-05/0.2688, allocations: 0 / 449 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.2688, allocations: 14.67 kB / 449 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.263e-05/0.2689, allocations: 16.09 kB / 449.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/0.2689, allocations: 0 / 449.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.269, allocations: 0 / 449.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.269, allocations: 1.375 kB / 449.1 MB, free: 1.996 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.0003196/0.2693, allocations: 346.8 kB / 449.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2694, allocations: 9.625 kB / 449.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.399e-05/0.2694, allocations: 32.12 kB / 449.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.2694, allocations: 2.312 kB / 449.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.786e-05/0.2695, allocations: 168.3 kB / 449.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.2695, allocations: 1.75 kB / 449.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.2696, allocations: 1.75 kB / 449.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.2697, allocations: 46.44 kB / 449.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.2697, allocations: 3.938 kB / 449.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.2697, allocations: 5.375 kB / 449.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.2698, allocations: 4 kB / 449.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.465e-05/0.2698, allocations: 5.5 kB / 449.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004353/0.2703, allocations: 255.2 kB / 449.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.993e-05/0.2703, allocations: 33.02 kB / 450 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.949e-05/0.2704, allocations: 23.8 kB / 450 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.2704, allocations: 0 / 450 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.2704, allocations: 36.22 kB / 450 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.342e-06/0.2705, allocations: 0 / 450 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002362/0.2707, allocations: 85.48 kB / 450.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.2707, allocations: 78.39 kB / 450.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.695e-05/0.2708, allocations: 93.86 kB / 450.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.2708, allocations: 26.64 kB / 450.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.864e-05/0.2708, allocations: 84.09 kB / 450.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.2708, allocations: 9.859 kB / 450.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.2709, allocations: 17.33 kB / 450.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.2709, allocations: 319.8 kB / 450.7 MB, free: 192 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.93e-05/0.271, allocations: 3.719 kB / 450.7 MB, free: 192 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.507e-05/0.271, allocations: 13.3 kB / 450.7 MB, free: 184 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.858e-05/0.2711, allocations: 74.02 kB / 450.8 MB, free: 104 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2711, allocations: 0 / 450.8 MB, free: 104 kB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001113/0.2712, allocations: 86.45 kB / 450.9 MB, free: 20 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/0.2713, allocations: 38.89 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.2714, allocations: 0.7812 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/0.2714, allocations: 0.75 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.57e-05/0.2715, allocations: 1.156 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2715, allocations: 1.469 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.007e-05/0.2716, allocations: 2.469 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.2716, allocations: 3.984 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 0.0001055/0.2717, allocations: 139 kB / 451.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.2718, allocations: 9.656 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.933e-05/0.2718, allocations: 4.781 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2718, allocations: 0 / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2718, allocations: 0 / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2718, allocations: 0 / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.272, allocations: 157.8 kB / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.272, allocations: 0 / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.612e-05/0.2721, allocations: 5.344 kB / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2721, allocations: 0 / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.2721, allocations: 5.312 kB / 451.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2721, allocations: 5.219 kB / 451.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2721, allocations: 4 kB / 451.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.2723, allocations: 183.4 kB / 451.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.2724, allocations: 77.11 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.2724, allocations: 1.25 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.2725, allocations: 6.359 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/0.2726, allocations: 5.844 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.2726, allocations: 1.312 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.203e-05/0.2727, allocations: 79.31 kB / 451.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2727, allocations: 0 / 451.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.273, allocations: 5.062 kB / 451.6 MB, free: 15.24 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.0005201/0.2735, allocations: 0.7144 MB / 452.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.2738, allocations: 82.88 kB / 452.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2738, allocations: 0 / 452.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.271e-05/0.2739, allocations: 68.64 kB / 452.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.2742, allocations: 3.469 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.0004681/0.2747, allocations: 123.1 kB / 452.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.275, allocations: 0.6754 MB / 453.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.351e-05/0.275, allocations: 0 / 453.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.2751, allocations: 8.812 kB / 453.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2751, allocations: 4.125 kB / 453.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.2964, allocations: 1.333 MB / 454.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.18, allocations: 5.312 kB / 454.6 MB, free: 12.68 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