Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.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.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") translateModel(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160,variableFilter="discontinuousDeadBand.smoothed|discontinuousDeadBand.u|discontinuousDeadBand.uMax|discontinuousDeadBand.uMin|discontinuousDeadBand.y|discontinuousDeadBandAnalyticSolution.y|inputSignal.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.0014, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001407/0.001407, allocations: 193.5 kB / 16.25 MB, free: 6.617 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.602/1.602, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06224/0.06224, allocations: 14.16 MB / 283.6 MB, free: 7.258 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.001459/0.001459, allocations: 63.91 kB / 344.6 MB, free: 19.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.094, allocations: 50.14 MB / 394.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001912/0.09594, allocations: 0.7436 MB / 395.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001928/0.09615, allocations: 47.81 kB / 395.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.09619, allocations: 8 kB / 395.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.827e-05/0.09623, allocations: 7.922 kB / 395.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.512e-05/0.0963, allocations: 0 / 395.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001247/0.09643, allocations: 15.98 kB / 395.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.631e-05/0.09652, allocations: 23.92 kB / 395.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.873e-05/0.09661, allocations: 8 kB / 395.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.546e-05/0.09665, allocations: 11.92 kB / 395.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.469e-05/0.09669, allocations: 11.98 kB / 395.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.09671, allocations: 0 / 395.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.437e-06/0.09673, allocations: 4 kB / 395.6 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.474e-05/0.09675, allocations: 11.94 kB / 395.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 1.814e-05/0.09677, allocations: 0 / 395.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.449e-05/0.09684, allocations: 27.89 kB / 395.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.09685, allocations: 0 / 395.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09685, allocations: 0 / 395.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.09686, allocations: 4 kB / 395.6 MB, free: 0.6367 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.0003793/0.09725, allocations: 339.7 kB / 396 MB, free: 260 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.09729, allocations: 8.031 kB / 396 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.21e-05/0.09732, allocations: 0.9375 kB / 396 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.09749, allocations: 176.3 kB / 396.1 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.09751, allocations: 4.312 kB / 396.1 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.09752, allocations: 4.375 kB / 396.1 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.09771, allocations: 72.8 kB / 396.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.09773, allocations: 4.188 kB / 396.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.09774, allocations: 3.938 kB / 396.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.09775, allocations: 0 / 396.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/0.09792, allocations: 39.91 kB / 396.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003991/0.09833, allocations: 261.8 kB / 396.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.0985, allocations: 73.11 kB / 396.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.036e-05/0.0986, allocations: 33.75 kB / 396.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.09862, allocations: 7.938 kB / 396.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.09866, allocations: 30.56 kB / 396.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.09867, allocations: 4 kB / 396.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003204/0.09899, allocations: 93.48 kB / 396.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.09907, allocations: 102.8 kB / 396.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.369e-05/0.09914, allocations: 97.86 kB / 397 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.09916, allocations: 29.7 kB / 397 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.242e-05/0.09921, allocations: 88.38 kB / 397.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.09923, allocations: 3.906 kB / 397.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.479e-05/0.09927, allocations: 17.72 kB / 397.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.09937, allocations: 310.8 kB / 397.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.66e-05/0.09947, allocations: 28.83 kB / 397.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.644e-05/0.09956, allocations: 42.5 kB / 397.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.09972, allocations: 41.69 kB / 397.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.09973, allocations: 0 / 397.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001862/0.09992, allocations: 81.56 kB / 397.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.09994, allocations: 4 kB / 397.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.09995, allocations: 4 kB / 397.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.09997, allocations: 4 kB / 397.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.044e-05/0.1001, allocations: 12.27 kB / 397.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.1001, allocations: 0 / 397.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.124e-05/0.1001, allocations: 4 kB / 397.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.1001, allocations: 7.984 kB / 397.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.715e-05/0.1002, allocations: 88.14 kB / 397.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.132e-05/0.1003, allocations: 30.61 kB / 397.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.134e-05/0.1003, allocations: 29.66 kB / 397.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.01e-07/0.1004, allocations: 0 / 397.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001183/0.1005, allocations: 61.52 kB / 397.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-06/0.1005, allocations: 12.03 kB / 397.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-06/0.1005, allocations: 0 / 397.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.936e-06/0.1005, allocations: 4 kB / 397.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.218e-05/0.1005, allocations: 4 kB / 397.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-06/0.1005, allocations: 3.938 kB / 397.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.576e-05/0.1006, allocations: 4 kB / 397.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.1006, allocations: 7.984 kB / 397.9 MB, free: 14.1 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.265e-05/0.1007, allocations: 192.1 kB / 398 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/0.1007, allocations: 7.938 kB / 398.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.039e-05/0.1007, allocations: 7.125 kB / 398.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.1008, allocations: 0 / 398.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1008, allocations: 0 / 398.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1008, allocations: 0 / 398.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.1009, allocations: 173.6 kB / 398.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1009, allocations: 0 / 398.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.417e-05/0.101, allocations: 8 kB / 398.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.101, allocations: 0 / 398.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.101, allocations: 0 / 398.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.101, allocations: 0 / 398.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.101, allocations: 7.984 kB / 398.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.1013, allocations: 176.2 kB / 398.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.1013, allocations: 81.02 kB / 398.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1013, allocations: 4 kB / 398.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-05/0.1014, allocations: 11.98 kB / 398.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1014, allocations: 4 kB / 398.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.1015, allocations: 4 kB / 398.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.924e-05/0.1015, allocations: 79.28 kB / 398.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1015, allocations: 0 / 398.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002568/0.1018, allocations: 4 kB / 398.6 MB, free: 13.26 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.788e-05/0.1019, allocations: 103.2 kB / 398.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002497/0.1021, allocations: 59.89 kB / 398.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1021, allocations: 0 / 398.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.217e-05/0.1022, allocations: 27.92 kB / 398.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.1024, allocations: 3.938 kB / 398.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003041/0.1027, allocations: 126.3 kB / 398.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.103, allocations: 0.6768 MB / 399.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.088e-05/0.103, allocations: 4 kB / 399.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.1031, allocations: 11.44 kB / 399.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1031, allocations: 0 / 399.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Templates: time 0.002273/0.1054, allocations: 0.5281 MB / 400.1 MB, free: 11.66 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches