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: 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_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_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.001517/0.001517, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 200.6 kB / 16.79 MB, free: 6.809 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.296/1.296, allocations: 205.1 MB / 222.6 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06159/0.06159, allocations: 14.16 MB / 284.1 MB, free: 7.289 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.001396/0.001396, allocations: 72.69 kB / 345 MB, free: 19.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08003/0.08144, allocations: 50.14 MB / 395.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001953/0.08343, allocations: 0.7325 MB / 395.9 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001971/0.08365, allocations: 67.78 kB / 396 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.923e-05/0.08369, allocations: 0 / 396 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.71e-05/0.08373, allocations: 0 / 396 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.033e-05/0.08382, allocations: 7.984 kB / 396 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000134/0.08396, allocations: 15.94 kB / 396 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.414e-05/0.08406, allocations: 27.97 kB / 396 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.823e-05/0.08416, allocations: 4 kB / 396 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.106e-05/0.0842, allocations: 15.92 kB / 396 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.368e-05/0.08426, allocations: 15.98 kB / 396.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.08428, allocations: 0 / 396.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.298e-06/0.0843, allocations: 0 / 396.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.038e-05/0.08432, allocations: 7.938 kB / 396.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.683e-05/0.08435, allocations: 11.92 kB / 396.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.191e-05/0.08441, allocations: 11.98 kB / 396.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.08442, allocations: 0 / 396.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.08442, allocations: 0 / 396.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.08443, allocations: 3.938 kB / 396.1 MB, free: 0.7617 MB / 286.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.0003924/0.08483, allocations: 343.7 kB / 396.4 MB, free: 384 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.08488, allocations: 12.03 kB / 396.4 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.08492, allocations: 4.875 kB / 396.5 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.08507, allocations: 172.4 kB / 396.6 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.08509, allocations: 384 / 396.6 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.0851, allocations: 384 / 396.6 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.08529, allocations: 72.81 kB / 396.7 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.08532, allocations: 8.125 kB / 396.7 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.08533, allocations: 3.938 kB / 396.7 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.08534, allocations: 4 kB / 396.7 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.08551, allocations: 35.95 kB / 396.7 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003455/0.08586, allocations: 261.9 kB / 397 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.08605, allocations: 77.06 kB / 397.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.926e-05/0.08616, allocations: 33.75 kB / 397.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.08618, allocations: 0 / 397.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.08621, allocations: 38.56 kB / 397.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.08622, allocations: 0 / 397.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003506/0.08657, allocations: 97.48 kB / 397.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.08663, allocations: 102.8 kB / 397.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.048e-05/0.08671, allocations: 98.11 kB / 397.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.08673, allocations: 33.64 kB / 397.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.08677, allocations: 80.14 kB / 397.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.08679, allocations: 11.89 kB / 397.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.08683, allocations: 17.72 kB / 397.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.08692, allocations: 310.8 kB / 397.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.669e-05/0.08702, allocations: 20.84 kB / 397.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.37e-05/0.08713, allocations: 50.55 kB / 397.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.08728, allocations: 41.69 kB / 398 MB, free: 14.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.08729, allocations: 0 / 398 MB, free: 14.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002034/0.0875, allocations: 81.84 kB / 398.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.08752, allocations: 4 kB / 398.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.08754, allocations: 4 kB / 398.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.08755, allocations: 0 / 398.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.744e-05/0.08764, allocations: 11.98 kB / 398.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.08766, allocations: 0 / 398.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.441e-05/0.08772, allocations: 4 kB / 398.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-06/0.08774, allocations: 15.98 kB / 398.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.498e-05/0.08782, allocations: 92.12 kB / 398.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.079e-05/0.08788, allocations: 30.5 kB / 398.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.644e-05/0.08796, allocations: 25.72 kB / 398.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.475e-06/0.08797, allocations: 3.984 kB / 398.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001312/0.08811, allocations: 65.44 kB / 398.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/0.08813, allocations: 4 kB / 398.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-06/0.08813, allocations: 3.984 kB / 398.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-06/0.08814, allocations: 4 kB / 398.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.812e-05/0.08818, allocations: 8 kB / 398.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-06/0.08819, allocations: 0 / 398.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.954e-05/0.08824, allocations: 4 kB / 398.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-06/0.08824, allocations: 0 / 398.3 MB, free: 14.21 MB / 302.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 9.699e-05/0.08835, allocations: 205.2 kB / 398.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.08838, allocations: 0 / 398.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.08841, allocations: 11.12 kB / 398.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.08841, allocations: 0 / 398.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.08842, allocations: 0 / 398.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.08843, allocations: 0 / 398.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.08859, allocations: 165.6 kB / 398.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.0886, allocations: 0 / 398.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.282e-05/0.08867, allocations: 11.94 kB / 398.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.08868, allocations: 4 kB / 398.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.0887, allocations: 0 / 398.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.0887, allocations: 3.984 kB / 398.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.08871, allocations: 4 kB / 398.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.08894, allocations: 168.3 kB / 398.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.08899, allocations: 89.02 kB / 399 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.08901, allocations: 4 kB / 399 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.384e-05/0.0891, allocations: 11.98 kB / 399 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.08914, allocations: 4 kB / 399 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.08915, allocations: 0 / 399 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.307e-05/0.08919, allocations: 79.28 kB / 399.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.774e-06/0.0892, allocations: 0 / 399.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.08949, allocations: 15.94 kB / 399.1 MB, free: 13.36 MB / 302.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 8.707e-05/0.08958, allocations: 103.2 kB / 399.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002473/0.08984, allocations: 51.89 kB / 399.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.08985, allocations: 0 / 399.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.681e-05/0.08994, allocations: 23.98 kB / 399.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/0.09017, allocations: 8.312 kB / 399.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003183/0.09049, allocations: 149.3 kB / 399.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.09073, allocations: 0.677 MB / 400.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.09077, allocations: 11.44 kB / 400.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.09078, allocations: 0 / 400.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of Templates: time 0.001802/0.09259, allocations: 0.6433 MB / 400.8 MB, free: 11.62 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDeadBand.makefile (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 & ./PowerGrids_PowerGrids.Controls.Test.TestDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches