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.007754/0.007755, allocations: 100.5 kB / 15.73 MB, free: 6.035 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.001592/0.001592, allocations: 187.1 kB / 16.67 MB, free: 5.969 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.381/1.381, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06244/0.06244, allocations: 14.17 MB / 284.1 MB, free: 6.996 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.002312/0.002313, allocations: 70.09 kB / 398.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2825, allocations: 50.13 MB / 448.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE): time 0.001824/0.2844, allocations: 0.7063 MB / 448.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000162/0.2846, allocations: 30.3 kB / 449 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.278e-05/0.2846, allocations: 3.938 kB / 449 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.723e-05/0.2847, allocations: 0 / 449 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.494e-05/0.2847, allocations: 3.938 kB / 449 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000134/0.2849, allocations: 7.375 kB / 449 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.773e-05/0.285, allocations: 20.7 kB / 449 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.268e-05/0.2851, allocations: 1.969 kB / 449 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.385e-05/0.2851, allocations: 11.92 kB / 449 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.429e-05/0.2851, allocations: 10.08 kB / 449 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.2852, allocations: 1.844 kB / 449 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-06/0.2852, allocations: 1.844 kB / 449 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.36e-05/0.2852, allocations: 3.938 kB / 449 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.315e-05/0.2852, allocations: 7.812 kB / 449 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.99e-05/0.2853, allocations: 15.72 kB / 449.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2853, allocations: 0 / 449.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2853, allocations: 0 / 449.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.2853, allocations: 0 / 449.1 MB, free: 1.992 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.0002306/0.2856, allocations: 347.2 kB / 449.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2856, allocations: 9.031 kB / 449.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.791e-05/0.2857, allocations: 40.28 kB / 449.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.486e-05/0.2857, allocations: 2.656 kB / 449.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.148e-05/0.2857, allocations: 160.4 kB / 449.6 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.2858, allocations: 5.875 kB / 449.6 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-06/0.2858, allocations: 6.531 kB / 449.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.903e-05/0.2859, allocations: 46.14 kB / 449.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2859, allocations: 3.938 kB / 449.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.2859, allocations: 4 kB / 449.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2859, allocations: 1.438 kB / 449.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.035e-05/0.2859, allocations: 8.469 kB / 449.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/0.2863, allocations: 251.2 kB / 449.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.505e-05/0.2864, allocations: 30.27 kB / 450 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.512e-05/0.2864, allocations: 14.92 kB / 450 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.2864, allocations: 5.312 kB / 450 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.2864, allocations: 38.55 kB / 450 MB, free: 0.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.2864, allocations: 1.406 kB / 450 MB, free: 0.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002064/0.2867, allocations: 85.3 kB / 450.1 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.2867, allocations: 78.3 kB / 450.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.528e-05/0.2867, allocations: 89.86 kB / 450.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.247e-06/0.2867, allocations: 26.98 kB / 450.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.085e-05/0.2868, allocations: 84.27 kB / 450.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.2868, allocations: 9.125 kB / 450.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.2868, allocations: 12.72 kB / 450.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.995e-05/0.2869, allocations: 324 kB / 450.7 MB, free: 188 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.147e-05/0.2869, allocations: 8.594 kB / 450.7 MB, free: 184 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.614e-05/0.2869, allocations: 8.625 kB / 450.7 MB, free: 180 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.964e-05/0.287, allocations: 77.94 kB / 450.8 MB, free: 96 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.287, allocations: 0 / 450.8 MB, free: 96 kB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.646e-05/0.287, allocations: 83.84 kB / 450.9 MB, free: 16 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.358e-05/0.2871, allocations: 39.06 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.2871, allocations: 0 / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2871, allocations: 0 / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.922e-05/0.2872, allocations: 2.656 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.2872, allocations: 0 / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.904e-05/0.2872, allocations: 2.812 kB / 450.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.2873, allocations: 1.625 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.669e-05/0.2874, allocations: 150.3 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.2874, allocations: 1.688 kB / 451.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.46e-05/0.2874, allocations: 3.125 kB / 451.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2874, allocations: 0 / 451.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2874, allocations: 5.5 kB / 451.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.2874, allocations: 0 / 451.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.2876, allocations: 156.4 kB / 451.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2876, allocations: 0 / 451.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-05/0.2876, allocations: 2.719 kB / 451.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2876, allocations: 3.984 kB / 451.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.2876, allocations: 1.188 kB / 451.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2876, allocations: 4 kB / 451.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2876, allocations: 0 / 451.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001485/0.2878, allocations: 187.2 kB / 451.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.849e-05/0.2878, allocations: 78.58 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.2879, allocations: 5.438 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.97e-05/0.2879, allocations: 1.312 kB / 451.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.288, allocations: 6.734 kB / 451.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.288, allocations: 4.031 kB / 451.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.418e-05/0.288, allocations: 76.84 kB / 451.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.288, allocations: 0 / 451.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.2882, allocations: 8.188 kB / 451.6 MB, free: 15.23 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.0004196/0.2887, allocations: 0.7149 MB / 452.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.2888, allocations: 78.52 kB / 452.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2888, allocations: 0 / 452.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.313e-05/0.2889, allocations: 69.02 kB / 452.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.2891, allocations: 10.69 kB / 452.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003478/0.2894, allocations: 124.6 kB / 452.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.2897, allocations: 0.6716 MB / 453.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.183e-05/0.2897, allocations: 0 / 453.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.289e-05/0.2897, allocations: 8.938 kB / 453.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2897, allocations: 7.938 kB / 453.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.3076, allocations: 1.338 MB / 454.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/7.606, allocations: 4.969 kB / 454.6 MB, free: 12.67 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 & /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","/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:exciterRectifierRegulationCharacteristicIEEE.u,exciterRectifierRegulationCharacteristicIEEE.y,realExpression.y,time