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.005114/0.005114, allocations: 101.3 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.001225/0.001225, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.163/0.163, allocations: 16.77 MB / 307.3 MB, free: 14.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 62.25 kB / 426.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08076/0.08194, allocations: 53.57 MB / 480.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001625/0.0836, allocations: 0.6762 MB / 480.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002162/0.08383, allocations: 60.92 kB / 480.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.898e-05/0.08387, allocations: 0 / 480.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.324e-05/0.0839, allocations: 0 / 480.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.08399, allocations: 9.047 kB / 480.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001388/0.08414, allocations: 20.36 kB / 480.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.012e-05/0.08424, allocations: 25.92 kB / 480.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.356e-05/0.08434, allocations: 7.625 kB / 480.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.018e-05/0.08437, allocations: 16.23 kB / 480.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.385e-05/0.08443, allocations: 11.36 kB / 481 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.08445, allocations: 2.156 kB / 481 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.018e-05/0.08447, allocations: 2.281 kB / 481 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.08449, allocations: 5.016 kB / 481 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.08452, allocations: 14.27 kB / 481 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.669e-05/0.08459, allocations: 24.14 kB / 481 MB, free: 9.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.08461, allocations: 0 / 481 MB, free: 9.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.08461, allocations: 1.094 kB / 481 MB, free: 9.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.08462, allocations: 0 / 481 MB, free: 9.762 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.0003247/0.08495, allocations: 339.5 kB / 481.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.085, allocations: 10.09 kB / 481.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.08503, allocations: 10.09 kB / 481.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.08516, allocations: 166.7 kB / 481.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.08518, allocations: 1.375 kB / 481.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.0852, allocations: 7.094 kB / 481.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.08538, allocations: 70.72 kB / 481.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.08539, allocations: 1.25 kB / 481.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.08541, allocations: 3.938 kB / 481.6 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.08541, allocations: 1.125 kB / 481.6 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.08557, allocations: 45.67 kB / 481.6 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002638/0.08584, allocations: 260.8 kB / 481.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.08599, allocations: 75.22 kB / 482 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.289e-05/0.08609, allocations: 34.44 kB / 482 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.08611, allocations: 1 kB / 482 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.08613, allocations: 39.59 kB / 482 MB, free: 8.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.08614, allocations: 1.125 kB / 482 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003063/0.08645, allocations: 90.11 kB / 482.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.08649, allocations: 108 kB / 482.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.226e-05/0.08654, allocations: 98.41 kB / 482.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-06/0.08656, allocations: 26.89 kB / 482.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.252e-05/0.08658, allocations: 93.17 kB / 482.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.483e-05/0.0866, allocations: 9.062 kB / 482.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.08664, allocations: 16.75 kB / 482.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.811e-05/0.08668, allocations: 315.9 kB / 482.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.08676, allocations: 23.66 kB / 482.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.502e-05/0.08684, allocations: 39.14 kB / 482.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.08698, allocations: 52.25 kB / 482.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.08699, allocations: 0 / 482.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001707/0.08717, allocations: 77 kB / 483 MB, free: 7.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.08719, allocations: 6.375 kB / 483 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.08719, allocations: 5.188 kB / 483 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.08721, allocations: 1.219 kB / 483 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.979e-05/0.0873, allocations: 11.86 kB / 483 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.08731, allocations: 0 / 483 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.887e-05/0.08736, allocations: 10.12 kB / 483 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.08737, allocations: 1.219 kB / 483 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.09e-05/0.08743, allocations: 92.81 kB / 483.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 3.911e-05/0.08747, allocations: 32.19 kB / 483.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 6.387e-05/0.08754, allocations: 28.81 kB / 483.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.01e-07/0.08755, allocations: 0 / 483.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001024/0.08766, allocations: 57.91 kB / 483.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.893e-06/0.08767, allocations: 9.797 kB / 483.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-06/0.08768, allocations: 4 kB / 483.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-06/0.08768, allocations: 5.531 kB / 483.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.477e-05/0.08772, allocations: 4.406 kB / 483.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-06/0.08773, allocations: 5.484 kB / 483.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.569e-05/0.08777, allocations: 2.781 kB / 483.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-06/0.08778, allocations: 1.5 kB / 483.3 MB, free: 7.523 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.829e-05/0.08783, allocations: 189.6 kB / 483.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.08786, allocations: 6.844 kB / 483.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.08788, allocations: 7.062 kB / 483.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.08789, allocations: 5.5 kB / 483.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.0879, allocations: 1.375 kB / 483.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.0879, allocations: 0 / 483.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.08802, allocations: 167.4 kB / 483.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.08803, allocations: 1.5 kB / 483.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.606e-05/0.08809, allocations: 6.469 kB / 483.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.08809, allocations: 1.406 kB / 483.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.08811, allocations: 5.516 kB / 483.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.08811, allocations: 0 / 483.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.08812, allocations: 5.438 kB / 483.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.08831, allocations: 174.9 kB / 483.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.687e-05/0.08833, allocations: 78.23 kB / 483.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.08835, allocations: 1.062 kB / 483.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.455e-05/0.08843, allocations: 10.23 kB / 483.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.905e-05/0.08848, allocations: 9.625 kB / 483.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.08849, allocations: 2.031 kB / 483.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.911e-05/0.08851, allocations: 78 kB / 484 MB, free: 6.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08851, allocations: 0 / 484 MB, free: 6.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002588/0.08878, allocations: 5.969 kB / 484 MB, free: 6.758 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 7.03e-05/0.08885, allocations: 101.9 kB / 484.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002493/0.08911, allocations: 56.8 kB / 484.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.08912, allocations: 0 / 484.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.804e-05/0.0892, allocations: 26.83 kB / 484.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.0894, allocations: 6.688 kB / 484.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002532/0.08966, allocations: 123.4 kB / 484.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.72e-05/0.08976, allocations: 0.678 MB / 485 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.674e-05/0.0898, allocations: 2.469 kB / 485 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.588e-05/0.08984, allocations: 17.69 kB / 485 MB, free: 5.777 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.08984, allocations: 0 / 485 MB, free: 5.777 MB / 350.1 MB Notification: Performance of Templates: time 0.002272/0.09212, allocations: 0.6398 MB / 485.6 MB, free: 5.453 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