Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(PowerGrids.Controls.Test.TestDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="deadBand.smoothed|deadBand.u|deadBand.uMax|deadBand.uMin|deadBand.y|deadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand") translateModel(PowerGrids.Controls.Test.TestDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="deadBand.smoothed|deadBand.u|deadBand.uMax|deadBand.uMin|deadBand.y|deadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009494/0.009494, allocations: 98.91 kB / 15.73 MB, free: 6.039 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.00216/0.00216, allocations: 192.8 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.186/0.186, allocations: 16.68 MB / 307.2 MB, free: 14.86 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 69.38 kB / 426.5 MB, free: 36.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08861, allocations: 53.56 MB / 480 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001541/0.09019, allocations: 0.6693 MB / 480.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001924/0.0904, allocations: 63.48 kB / 480.7 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.192e-05/0.09044, allocations: 1.438 kB / 480.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.161e-05/0.09047, allocations: 4 kB / 480.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.962e-05/0.09055, allocations: 3.938 kB / 480.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001293/0.09068, allocations: 19.75 kB / 480.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.361e-05/0.09078, allocations: 30.72 kB / 480.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.836e-05/0.09088, allocations: 7.344 kB / 480.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.556e-05/0.09091, allocations: 8.562 kB / 480.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.811e-05/0.09096, allocations: 19.22 kB / 480.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.09099, allocations: 2.125 kB / 480.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.177e-06/0.091, allocations: 6.25 kB / 480.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.491e-05/0.09102, allocations: 1.031 kB / 480.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.156e-05/0.09105, allocations: 10.19 kB / 480.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.799e-05/0.09112, allocations: 32.11 kB / 480.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09113, allocations: 0 / 480.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09113, allocations: 1.094 kB / 480.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.09114, allocations: 0 / 480.9 MB, free: 9.895 MB / 350.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.000297/0.09144, allocations: 339.5 kB / 481.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.09148, allocations: 10.06 kB / 481.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.09152, allocations: 6.031 kB / 481.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.09163, allocations: 171.7 kB / 481.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.635e-06/0.09164, allocations: 384 / 481.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.09166, allocations: 6.641 kB / 481.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.09183, allocations: 72.31 kB / 481.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.09185, allocations: 192 / 481.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.09186, allocations: 5.406 kB / 481.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.09187, allocations: 7.938 kB / 481.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000165/0.09204, allocations: 37.47 kB / 481.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002709/0.09232, allocations: 265.6 kB / 481.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.09248, allocations: 74.69 kB / 481.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.079e-05/0.09258, allocations: 30.42 kB / 481.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.09261, allocations: 5.016 kB / 481.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.09263, allocations: 40.39 kB / 481.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.09264, allocations: 4 kB / 481.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003445/0.09299, allocations: 90.38 kB / 482 MB, free: 8.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.09304, allocations: 104 kB / 482.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.796e-05/0.09309, allocations: 98.16 kB / 482.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.09311, allocations: 26.92 kB / 482.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.375e-05/0.09314, allocations: 89.42 kB / 482.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.09316, allocations: 8.938 kB / 482.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.09319, allocations: 20.86 kB / 482.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.959e-05/0.09324, allocations: 312.1 kB / 482.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.717e-05/0.09333, allocations: 23.41 kB / 482.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.539e-05/0.09342, allocations: 42.86 kB / 482.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.09358, allocations: 47.81 kB / 482.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.09359, allocations: 0 / 482.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000193/0.09379, allocations: 77.3 kB / 482.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.09381, allocations: 5.719 kB / 482.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.09382, allocations: 5.016 kB / 482.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.09384, allocations: 0 / 482.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.795e-05/0.09393, allocations: 8.531 kB / 482.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.09394, allocations: 0 / 482.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.552e-05/0.094, allocations: 10.2 kB / 482.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.09402, allocations: 1.375 kB / 482.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.826e-05/0.09408, allocations: 91.94 kB / 483 MB, free: 7.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.209e-05/0.09413, allocations: 25.05 kB / 483 MB, free: 7.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.38e-05/0.09421, allocations: 32.55 kB / 483 MB, free: 7.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.71e-07/0.09421, allocations: 0 / 483 MB, free: 7.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001085/0.09433, allocations: 53.53 kB / 483.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.492e-06/0.09434, allocations: 9.656 kB / 483.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-06/0.09435, allocations: 1.094 kB / 483.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-06/0.09436, allocations: 1.094 kB / 483.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.744e-05/0.0944, allocations: 12.11 kB / 483.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-06/0.09441, allocations: 1.125 kB / 483.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.125e-05/0.09445, allocations: 11.38 kB / 483.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-06/0.09446, allocations: 1.406 kB / 483.1 MB, free: 7.664 MB / 350.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 4.406e-05/0.09451, allocations: 182.7 kB / 483.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.09454, allocations: 9.297 kB / 483.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.944e-05/0.09456, allocations: 12.25 kB / 483.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.09457, allocations: 5.016 kB / 483.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.09458, allocations: 5 kB / 483.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.09459, allocations: 0 / 483.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.09471, allocations: 167.6 kB / 483.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.09472, allocations: 1.812 kB / 483.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.134e-05/0.09478, allocations: 10.83 kB / 483.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.09481, allocations: 1 kB / 483.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.09482, allocations: 1.125 kB / 483.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.09483, allocations: 4 kB / 483.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.09483, allocations: 1.062 kB / 483.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.09504, allocations: 175.9 kB / 483.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.113e-05/0.09507, allocations: 78.39 kB / 483.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.09509, allocations: 5.016 kB / 483.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.112e-05/0.09517, allocations: 9.406 kB / 483.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-05/0.09521, allocations: 10.39 kB / 483.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.09522, allocations: 1.219 kB / 483.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.939e-05/0.09525, allocations: 78.14 kB / 483.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09525, allocations: 0 / 483.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.09552, allocations: 11.12 kB / 483.9 MB, free: 6.887 MB / 350.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 6.985e-05/0.0956, allocations: 93.52 kB / 484 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002603/0.09586, allocations: 56.23 kB / 484 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.09588, allocations: 1.094 kB / 484 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.874e-05/0.09597, allocations: 29.69 kB / 484.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.09619, allocations: 14.45 kB / 484.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002967/0.0965, allocations: 124.4 kB / 484.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.15e-05/0.0966, allocations: 0.6765 MB / 484.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.175e-05/0.09665, allocations: 6 kB / 484.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.09668, allocations: 13.56 kB / 484.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09668, allocations: 0 / 484.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of Templates: time 0.002861/0.09955, allocations: 0.6393 MB / 485.5 MB, free: 5.578 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches