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.007863/0.007863, allocations: 101.6 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.001877/0.001877, allocations: 196.1 kB / 16.68 MB, free: 5.957 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.399/1.399, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06237/0.06237, allocations: 14.16 MB / 284.1 MB, free: 13.85 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.00135/0.00135, allocations: 68.17 kB / 396 MB, free: 44.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08802, allocations: 50.14 MB / 446.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002099/0.09016, allocations: 0.6707 MB / 446.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002661/0.09045, allocations: 64.12 kB / 446.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.632e-05/0.09051, allocations: 4 kB / 446.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.09055, allocations: 3.938 kB / 446.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.398e-05/0.09067, allocations: 3.984 kB / 446.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.09084, allocations: 15.94 kB / 446.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.09095, allocations: 31.91 kB / 446.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.09106, allocations: 4 kB / 446.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.699e-05/0.09111, allocations: 15.92 kB / 446.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.977e-05/0.09118, allocations: 19.91 kB / 446.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.09121, allocations: 4 kB / 446.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.604e-06/0.09122, allocations: 0 / 446.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.907e-05/0.09124, allocations: 8 kB / 446.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.09128, allocations: 7.938 kB / 447 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.925e-05/0.09138, allocations: 23.91 kB / 447 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.09139, allocations: 0 / 447 MB, free: 13.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.0914, allocations: 4 kB / 447 MB, free: 13.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.09141, allocations: 0 / 447 MB, free: 13.28 MB / 334.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.0004806/0.0919, allocations: 330.4 kB / 447.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.09195, allocations: 12.03 kB / 447.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.09199, allocations: 34.75 kB / 447.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.335e-05/0.09203, allocations: 8.844 kB / 447.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.0922, allocations: 168.4 kB / 447.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.09222, allocations: 384 / 447.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.09223, allocations: 12.31 kB / 447.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.09243, allocations: 72.8 kB / 447.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.09245, allocations: 3.938 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.09246, allocations: 4 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-06/0.09247, allocations: 0 / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.09263, allocations: 39.89 kB / 447.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003622/0.093, allocations: 269.8 kB / 447.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.09318, allocations: 69.12 kB / 448 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.507e-05/0.09328, allocations: 41.69 kB / 448 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.09331, allocations: 0 / 448 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/0.09345, allocations: 34.56 kB / 448.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 7.61e-07/0.09346, allocations: 0 / 448.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003477/0.09381, allocations: 93.58 kB / 448.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.09388, allocations: 102.8 kB / 448.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.09397, allocations: 97.86 kB / 448.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.09399, allocations: 29.7 kB / 448.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.09404, allocations: 84.08 kB / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.61e-05/0.09412, allocations: 20.58 kB / 448.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.09416, allocations: 13.97 kB / 448.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.09428, allocations: 314.8 kB / 448.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.7e-05/0.09438, allocations: 24.84 kB / 448.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.412e-05/0.09447, allocations: 38.55 kB / 448.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.09462, allocations: 53.66 kB / 448.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.09463, allocations: 3.938 kB / 448.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001955/0.09483, allocations: 81.53 kB / 449 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.09486, allocations: 4 kB / 449 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.09487, allocations: 0 / 449 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.09489, allocations: 4.062 kB / 449 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.038e-05/0.09498, allocations: 8 kB / 449 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.095, allocations: 3.984 kB / 449 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.539e-05/0.09506, allocations: 8 kB / 449 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.09507, allocations: 0 / 449 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.928e-05/0.09516, allocations: 88.12 kB / 449.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.841e-05/0.09522, allocations: 26.58 kB / 449.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.268e-05/0.0953, allocations: 33.67 kB / 449.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.01e-07/0.09531, allocations: 4 kB / 449.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001181/0.09544, allocations: 53.62 kB / 449.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.734e-06/0.09545, allocations: 4 kB / 449.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-06/0.09546, allocations: 0 / 449.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-06/0.09546, allocations: 0 / 449.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.408e-05/0.09552, allocations: 16.05 kB / 449.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.09552, allocations: 7.922 kB / 449.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.923e-05/0.09558, allocations: 4 kB / 449.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-06/0.09559, allocations: 0 / 449.3 MB, free: 10.7 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.0001534/0.09575, allocations: 188.1 kB / 449.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.09578, allocations: 7.906 kB / 449.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.09581, allocations: 11.06 kB / 449.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.09582, allocations: 0 / 449.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.09583, allocations: 8.375 kB / 449.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.09584, allocations: 0 / 449.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.096, allocations: 165.6 kB / 449.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.09601, allocations: 3.984 kB / 449.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.09608, allocations: 8 kB / 449.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.09609, allocations: 7.984 kB / 449.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.0961, allocations: 0 / 449.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.09611, allocations: 0 / 449.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.09611, allocations: 0 / 449.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.09635, allocations: 182.3 kB / 449.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.945e-05/0.0964, allocations: 85.03 kB / 449.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.09642, allocations: 7.938 kB / 449.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.492e-05/0.0965, allocations: 4 kB / 449.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.09655, allocations: 3.984 kB / 449.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.09656, allocations: 8 kB / 449.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.191e-05/0.09661, allocations: 83.28 kB / 450 MB, free: 9.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09662, allocations: 0 / 450 MB, free: 9.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.09689, allocations: 4 kB / 450 MB, free: 9.84 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.0005292/0.09742, allocations: 0.717 MB / 450.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.09769, allocations: 51.89 kB / 450.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.0977, allocations: 0 / 450.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.725e-05/0.09778, allocations: 20.3 kB / 450.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.09801, allocations: 8.062 kB / 450.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.09967, allocations: 1.271 MB / 452.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.1, allocations: 0.6768 MB / 452.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.412e-05/0.1001, allocations: 4 kB / 452.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.385e-05/0.1001, allocations: 11.44 kB / 452.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1001, allocations: 0 / 452.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.1189, allocations: 1.492 MB / 454.3 MB, free: 5.465 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.275/7.394, allocations: 4.062 kB / 454.3 MB, free: 5.461 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