Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDeadBand.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.Controls.Test.TestDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDeadBand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDeadBand",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.005462/0.005462, allocations: 102 kB / 15.73 MB, free: 6.051 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.001244/0.001244, allocations: 196.6 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.576/1.576, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06867/0.06867, allocations: 14.17 MB / 284.1 MB, free: 6.992 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.002694/0.002694, allocations: 63.91 kB / 396 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3271, allocations: 50.14 MB / 446.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001835/0.329, allocations: 0.6733 MB / 446.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002282/0.3293, allocations: 60.42 kB / 446.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.827e-05/0.3293, allocations: 3.938 kB / 446.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.225e-05/0.3293, allocations: 7.922 kB / 446.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.369e-05/0.3295, allocations: 5.188 kB / 446.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.3296, allocations: 19.89 kB / 446.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.704e-05/0.3297, allocations: 23.11 kB / 446.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.3299, allocations: 7.125 kB / 446.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.228e-05/0.3299, allocations: 7.578 kB / 446.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.444e-05/0.33, allocations: 15.27 kB / 446.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.101e-05/0.33, allocations: 15.16 kB / 446.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.33, allocations: 2.219 kB / 446.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.326e-05/0.3301, allocations: 7.984 kB / 446.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.93e-05/0.3301, allocations: 14.3 kB / 447 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.463e-05/0.3302, allocations: 16.2 kB / 447 MB, free: 1.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3302, allocations: 1.156 kB / 447 MB, free: 1.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3302, allocations: 0 / 447 MB, free: 1.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.3302, allocations: 0 / 447 MB, free: 1.285 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003715/0.3306, allocations: 334 kB / 447.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3306, allocations: 13.72 kB / 447.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.131e-05/0.3307, allocations: 35.91 kB / 447.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.997e-05/0.3307, allocations: 5.969 kB / 447.4 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.3308, allocations: 167.2 kB / 447.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.103e-06/0.3309, allocations: 1.875 kB / 447.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.3309, allocations: 1.344 kB / 447.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.3311, allocations: 90.88 kB / 447.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3311, allocations: 9.047 kB / 447.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.3311, allocations: 0 / 447.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3311, allocations: 1.125 kB / 447.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.3313, allocations: 32.78 kB / 447.7 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003167/0.3316, allocations: 278.5 kB / 447.9 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.3318, allocations: 67.09 kB / 448 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.619e-05/0.3319, allocations: 30.45 kB / 448 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.3319, allocations: 3.938 kB / 448 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.3319, allocations: 40.72 kB / 448.1 MB, free: 124 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3319, allocations: 0 / 448.1 MB, free: 124 kB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003537/0.3323, allocations: 90.83 kB / 448.2 MB, free: 64 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.659e-05/0.3324, allocations: 104.2 kB / 448.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.3325, allocations: 101.9 kB / 448.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3325, allocations: 30.64 kB / 448.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.889e-05/0.3326, allocations: 85.27 kB / 448.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.3326, allocations: 12.92 kB / 448.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.3327, allocations: 16.94 kB / 448.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.3329, allocations: 311.9 kB / 448.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.333, allocations: 32.11 kB / 448.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.239e-05/0.3331, allocations: 30.97 kB / 448.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.3333, allocations: 52.72 kB / 448.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3333, allocations: 3.938 kB / 448.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002117/0.3335, allocations: 77.25 kB / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3335, allocations: 7.062 kB / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3335, allocations: 0 / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.3336, allocations: 0 / 449 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.3337, allocations: 19.39 kB / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.3337, allocations: 0 / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.57e-05/0.3337, allocations: 14.64 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3338, allocations: 3.984 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.697e-05/0.3339, allocations: 88.89 kB / 449.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.038e-05/0.3339, allocations: 25.75 kB / 449.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.514e-05/0.334, allocations: 28.95 kB / 449.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.82e-07/0.334, allocations: 4.031 kB / 449.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001421/0.3342, allocations: 57.31 kB / 449.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.925e-06/0.3342, allocations: 3.844 kB / 449.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-06/0.3342, allocations: 3.781 kB / 449.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-06/0.3342, allocations: 0 / 449.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.602e-05/0.3342, allocations: 3.406 kB / 449.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-06/0.3342, allocations: 0 / 449.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.268e-05/0.3343, allocations: 12.39 kB / 449.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-06/0.3343, allocations: 1.406 kB / 449.3 MB, free: 15 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0001035/0.3344, allocations: 189.5 kB / 449.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.3344, allocations: 6.188 kB / 449.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.3345, allocations: 8.5 kB / 449.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3345, allocations: 0 / 449.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3345, allocations: 1.5 kB / 449.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3345, allocations: 384 / 449.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.3347, allocations: 167.8 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3347, allocations: 1.031 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.304e-05/0.3348, allocations: 11.61 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3348, allocations: 4 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.3348, allocations: 1.5 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3348, allocations: 1.344 kB / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3348, allocations: 0 / 449.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.3351, allocations: 183.6 kB / 449.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.3351, allocations: 78.39 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.3352, allocations: 1.094 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.915e-05/0.3353, allocations: 8.922 kB / 449.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.3353, allocations: 6.562 kB / 449.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-06/0.3353, allocations: 5.375 kB / 449.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.368e-05/0.3354, allocations: 81.86 kB / 450 MB, free: 14.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3354, allocations: 0 / 450 MB, free: 14.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.3357, allocations: 11.06 kB / 450 MB, free: 14.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.000563/0.3362, allocations: 0.7139 MB / 450.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002979/0.3366, allocations: 57.8 kB / 450.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3366, allocations: 3.938 kB / 450.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.898e-05/0.3367, allocations: 22.11 kB / 450.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.3369, allocations: 10.56 kB / 450.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.3384, allocations: 1.262 MB / 452.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.3387, allocations: 0.6781 MB / 452.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.831e-05/0.3387, allocations: 5.375 kB / 452.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.189e-05/0.3388, allocations: 18.14 kB / 452.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3388, allocations: 0 / 452.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.3612, allocations: 1.461 MB / 454.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.447, allocations: 12.19 kB / 454.3 MB, free: 10.61 MB / 334.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDeadBand_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDeadBand.fmu > PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:deadBand.smoothed,deadBand.u,deadBand.uMax,deadBand.uMin,deadBand.y,deadBandAnalyticSolution.y,inputSignal.y,time Variables in the result:deadBand.smoothed,deadBand.u,deadBand.uMax,deadBand.uMin,deadBand.y,deadBandAnalyticSolution.y,inputSignal.y,time