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.004613/0.004613, allocations: 102 kB / 15.73 MB, free: 6.488 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.001109/0.001109, allocations: 194.6 kB / 16.68 MB, free: 6.375 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.317/1.317, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06395/0.06395, allocations: 14.16 MB / 284.1 MB, free: 7 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.001475/0.001476, allocations: 67.91 kB / 398.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.236, allocations: 50.14 MB / 448.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestExciterRectifierRegulationCharacteristicIEEE): time 0.001655/0.2377, allocations: 0.6981 MB / 448.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001504/0.2379, allocations: 30.3 kB / 449 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.981e-05/0.2379, allocations: 0 / 449 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.572e-05/0.238, allocations: 3.938 kB / 449 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.366e-05/0.238, allocations: 4 kB / 449 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001232/0.2382, allocations: 7.781 kB / 449 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.183e-05/0.2383, allocations: 23.23 kB / 449 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.214e-05/0.2383, allocations: 7.594 kB / 449 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.242e-05/0.2384, allocations: 7.672 kB / 449 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.844e-05/0.2384, allocations: 9.734 kB / 449 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.2384, allocations: 1.781 kB / 449 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.953e-06/0.2384, allocations: 1.812 kB / 449 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.2385, allocations: 0 / 449 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.515e-05/0.2385, allocations: 11.39 kB / 449 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.994e-05/0.2386, allocations: 15.52 kB / 449.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2386, allocations: 0 / 449.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2386, allocations: 0 / 449.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2386, allocations: 0 / 449.1 MB, free: 2.012 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.0002282/0.2388, allocations: 352.3 kB / 449.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2388, allocations: 8.938 kB / 449.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.377e-05/0.2389, allocations: 36.53 kB / 449.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.2389, allocations: 2.781 kB / 449.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.681e-05/0.239, allocations: 164.4 kB / 449.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.239, allocations: 4.375 kB / 449.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.285e-06/0.239, allocations: 4.125 kB / 449.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.977e-05/0.2391, allocations: 40.5 kB / 449.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.2391, allocations: 3.938 kB / 449.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.2391, allocations: 1.062 kB / 449.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2391, allocations: 1.375 kB / 449.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.027e-05/0.2391, allocations: 13.48 kB / 449.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003094/0.2395, allocations: 246.5 kB / 449.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.22e-05/0.2395, allocations: 33.39 kB / 450 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.073e-05/0.2395, allocations: 19.72 kB / 450 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.2396, allocations: 3.938 kB / 450 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.2396, allocations: 31.94 kB / 450 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2396, allocations: 0 / 450 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001645/0.2398, allocations: 89.2 kB / 450.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.2398, allocations: 82.61 kB / 450.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.339e-05/0.2398, allocations: 91.23 kB / 450.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.462e-06/0.2398, allocations: 25.7 kB / 450.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.296e-05/0.2398, allocations: 85.45 kB / 450.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.2399, allocations: 5.281 kB / 450.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.2399, allocations: 20.45 kB / 450.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.623e-05/0.2399, allocations: 316.2 kB / 450.7 MB, free: 212 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.021e-05/0.24, allocations: 8.125 kB / 450.7 MB, free: 208 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.408e-05/0.24, allocations: 8.125 kB / 450.7 MB, free: 204 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.821e-05/0.24, allocations: 79.25 kB / 450.8 MB, free: 120 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.24, allocations: 0 / 450.8 MB, free: 120 kB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.533e-05/0.2401, allocations: 86.39 kB / 450.9 MB, free: 36 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.2402, allocations: 31.2 kB / 450.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2402, allocations: 0 / 450.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2402, allocations: 1.375 kB / 450.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.92e-05/0.2402, allocations: 1.375 kB / 450.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.2402, allocations: 0 / 450.9 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.271e-05/0.2403, allocations: 6.844 kB / 450.9 MB, free: 0 / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.2403, allocations: 1.375 kB / 450.9 MB, free: 0 / 318.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.0001056/0.2404, allocations: 150.2 kB / 451.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.215e-05/0.2404, allocations: 1.375 kB / 451.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.203e-05/0.2405, allocations: 4.5 kB / 451.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.2405, allocations: 0 / 451.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2405, allocations: 0 / 451.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.2405, allocations: 1.375 kB / 451.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.2406, allocations: 160.3 kB / 451.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2406, allocations: 8 kB / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.003e-05/0.2406, allocations: 1.375 kB / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.2406, allocations: 1.375 kB / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.2407, allocations: 0 / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2407, allocations: 1.375 kB / 451.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2407, allocations: 3.938 kB / 451.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.2408, allocations: 186.9 kB / 451.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.683e-05/0.2409, allocations: 82.52 kB / 451.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.2409, allocations: 1.375 kB / 451.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.952e-05/0.241, allocations: 5.359 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.241, allocations: 1.375 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.241, allocations: 1.375 kB / 451.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.53e-05/0.241, allocations: 75.28 kB / 451.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.241, allocations: 1.375 kB / 451.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002062/0.2413, allocations: 5.5 kB / 451.6 MB, free: 15.26 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.0003879/0.2416, allocations: 0.7177 MB / 452.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.2418, allocations: 78.52 kB / 452.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2418, allocations: 3.938 kB / 452.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.952e-05/0.2418, allocations: 69.02 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.0001867/0.242, allocations: 2.75 kB / 452.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003188/0.2424, allocations: 128.7 kB / 452.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.2426, allocations: 0.6755 MB / 453.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.227e-05/0.2426, allocations: 3.984 kB / 453.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.896e-05/0.2426, allocations: 8.812 kB / 453.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2426, allocations: 0 / 453.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.2592, allocations: 1.334 MB / 454.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.312, allocations: 1.375 kB / 454.6 MB, free: 12.7 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