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.001155/0.001155, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001158/0.001158, allocations: 197.9 kB / 16.14 MB, free: 6.703 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.153/1.153, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0554/0.0554, allocations: 14.16 MB / 283.5 MB, free: 7.293 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.00124/0.00124, allocations: 67.91 kB / 346.5 MB, free: 17.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06593/0.06718, allocations: 50.14 MB / 396.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE): time 0.001676/0.06888, allocations: 0.758 MB / 397.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001554/0.06905, allocations: 27.95 kB / 397.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.06908, allocations: 0 / 397.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.49e-05/0.06911, allocations: 3.938 kB / 397.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.269e-05/0.06915, allocations: 0 / 397.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001012/0.06926, allocations: 8 kB / 397.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.47e-05/0.06931, allocations: 15.98 kB / 397.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.679e-05/0.06938, allocations: 8 kB / 397.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.75e-05/0.06941, allocations: 4 kB / 397.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.943e-05/0.06945, allocations: 11.92 kB / 397.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.06947, allocations: 0 / 397.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.161e-06/0.06948, allocations: 0 / 397.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.32e-05/0.06949, allocations: 8 kB / 397.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.123e-05/0.06952, allocations: 0 / 397.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 5.67e-05/0.06958, allocations: 23.89 kB / 397.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.06959, allocations: 0 / 397.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.12e-07/0.06959, allocations: 3.938 kB / 397.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.0696, allocations: 0 / 397.6 MB, free: 14.63 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.0002569/0.06986, allocations: 357.2 kB / 397.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.0699, allocations: 8.031 kB / 397.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.368e-05/0.06993, allocations: 30.75 kB / 397.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.037e-05/0.06996, allocations: 4.938 kB / 397.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.175e-05/0.07003, allocations: 164.3 kB / 398.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.07005, allocations: 384 / 398.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.07006, allocations: 4.375 kB / 398.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.019e-05/0.07015, allocations: 46.23 kB / 398.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.07017, allocations: 3.938 kB / 398.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.07018, allocations: 11.98 kB / 398.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-06/0.07019, allocations: 0 / 398.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.495e-05/0.07022, allocations: 4 kB / 398.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003257/0.07055, allocations: 256.9 kB / 398.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.323e-05/0.07061, allocations: 34.45 kB / 398.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.137e-05/0.07065, allocations: 16.92 kB / 398.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.07066, allocations: 4 kB / 398.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.07068, allocations: 30.56 kB / 398.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.07069, allocations: 0 / 398.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001634/0.07085, allocations: 87.31 kB / 398.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.0709, allocations: 85.11 kB / 398.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.716e-05/0.07093, allocations: 89.86 kB / 398.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.07095, allocations: 25.7 kB / 398.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.07098, allocations: 84.27 kB / 398.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.071, allocations: 3.906 kB / 398.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.07104, allocations: 13.72 kB / 398.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.824e-05/0.07113, allocations: 318.8 kB / 399.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.027e-05/0.07116, allocations: 7.984 kB / 399.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.59e-05/0.07118, allocations: 8 kB / 399.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.764e-05/0.07124, allocations: 72.27 kB / 399.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.07125, allocations: 8.047 kB / 399.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.009e-05/0.07134, allocations: 83.28 kB / 399.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.07138, allocations: 41.62 kB / 399.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.307e-06/0.07139, allocations: 0 / 399.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.0714, allocations: 0 / 399.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.818e-05/0.07143, allocations: 0 / 399.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.07144, allocations: 0 / 399.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.336e-05/0.07149, allocations: 4 kB / 399.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.0715, allocations: 0 / 399.4 MB, free: 12.48 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 7.459e-05/0.07158, allocations: 147.5 kB / 399.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.07161, allocations: 3.984 kB / 399.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.059e-05/0.07162, allocations: 11.06 kB / 399.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.07163, allocations: 0 / 399.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.07163, allocations: 0 / 399.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.07164, allocations: 0 / 399.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/0.07176, allocations: 153.6 kB / 399.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.07177, allocations: 0 / 399.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.376e-06/0.07178, allocations: 0 / 399.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.07179, allocations: 0 / 399.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.0718, allocations: 4 kB / 399.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.07181, allocations: 7.984 kB / 399.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.07181, allocations: 0 / 399.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.07193, allocations: 181.1 kB / 399.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.462e-05/0.07196, allocations: 77.11 kB / 400 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.07198, allocations: 4 kB / 400 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.589e-05/0.07205, allocations: 0 / 400 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.07209, allocations: 12.02 kB / 400 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-06/0.0721, allocations: 8 kB / 400 MB, free: 11.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.093e-05/0.07213, allocations: 75.28 kB / 400.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.07213, allocations: 0 / 400.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002031/0.07234, allocations: 4 kB / 400.1 MB, free: 11.7 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.0003172/0.07266, allocations: 0.7141 MB / 400.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001/0.07277, allocations: 83.33 kB / 400.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.07278, allocations: 0 / 400.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.697e-05/0.07283, allocations: 71.39 kB / 401 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.07302, allocations: 3.516 kB / 401 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.0733, allocations: 132.2 kB / 401.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.07349, allocations: 0.6731 MB / 401.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.937e-06/0.07351, allocations: 128 / 401.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.416e-05/0.07353, allocations: 11.44 kB / 401.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.07353, allocations: 0 / 401.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009191/0.08273, allocations: 1.14 MB / 402.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.08294, allocations: 220.9 kB / 403.1 MB, free: 8.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.471/1.554, allocations: 7.938 kB / 403.1 MB, free: 8.582 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