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.001272/0.001272, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001229/0.001229, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.28/1.28, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06264/0.06264, allocations: 14.17 MB / 284.7 MB, free: 13.86 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.001406/0.001406, allocations: 73.89 kB / 397.1 MB, free: 43.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0678/0.06922, allocations: 50.13 MB / 447.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001704/0.07096, allocations: 0.6707 MB / 447.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002235/0.0712, allocations: 68.12 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.162e-05/0.07124, allocations: 0 / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.539e-05/0.07128, allocations: 3.938 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.124e-05/0.07135, allocations: 0 / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001262/0.07148, allocations: 15.92 kB / 448 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.726e-05/0.07157, allocations: 27.92 kB / 448.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.32e-05/0.07166, allocations: 0 / 448.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.548e-05/0.07169, allocations: 8 kB / 448.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.838e-05/0.07174, allocations: 19.91 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.07177, allocations: 4 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.705e-06/0.07178, allocations: 4 kB / 448.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.0718, allocations: 11.92 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.226e-05/0.07183, allocations: 7.938 kB / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 6.328e-05/0.07189, allocations: 19.92 kB / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.07191, allocations: 4 kB / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.07191, allocations: 0 / 448.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.07192, allocations: 0 / 448.1 MB, free: 12.83 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.00037/0.07229, allocations: 331.5 kB / 448.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.07234, allocations: 8.031 kB / 448.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.132e-05/0.07237, allocations: 8.938 kB / 448.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.07252, allocations: 172.3 kB / 448.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.07254, allocations: 384 / 448.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.07255, allocations: 384 / 448.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.07274, allocations: 80.75 kB / 448.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.07275, allocations: 192 / 448.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.07277, allocations: 3.938 kB / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.07278, allocations: 4 kB / 448.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.07295, allocations: 39.95 kB / 448.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003198/0.07328, allocations: 261.8 kB / 449 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.07346, allocations: 77.06 kB / 449.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.614e-05/0.07357, allocations: 29.77 kB / 449.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.07359, allocations: 0 / 449.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.07363, allocations: 42.48 kB / 449.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/0.07363, allocations: 0 / 449.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003418/0.07398, allocations: 81.66 kB / 449.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.07404, allocations: 110.8 kB / 449.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.248e-05/0.07411, allocations: 105.8 kB / 449.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.07413, allocations: 25.95 kB / 449.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.07417, allocations: 88.08 kB / 449.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.0742, allocations: 15.75 kB / 449.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-05/0.07424, allocations: 17.7 kB / 449.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.537e-05/0.07433, allocations: 314.8 kB / 449.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.954e-05/0.07442, allocations: 20.84 kB / 449.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-05/0.07452, allocations: 38.56 kB / 450 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.07469, allocations: 53.61 kB / 450 MB, free: 10.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.0747, allocations: 0 / 450 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002012/0.07491, allocations: 77.58 kB / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.07493, allocations: 4 kB / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.07493, allocations: 0 / 450.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.07495, allocations: 3.984 kB / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.962e-05/0.07504, allocations: 8 kB / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.07505, allocations: 3.938 kB / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.302e-05/0.07513, allocations: 11.98 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-06/0.07514, allocations: 0 / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.674e-05/0.07522, allocations: 96.19 kB / 450.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.723e-05/0.07528, allocations: 22.58 kB / 450.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.819e-05/0.07536, allocations: 25.7 kB / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.41e-07/0.07537, allocations: 0 / 450.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001208/0.0755, allocations: 61.62 kB / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.07551, allocations: 8 kB / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-06/0.07552, allocations: 0 / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-06/0.07552, allocations: 0 / 450.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.704e-05/0.07557, allocations: 7.984 kB / 450.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.885e-06/0.07557, allocations: 4 kB / 450.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.761e-05/0.07562, allocations: 0 / 450.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-06/0.07563, allocations: 4 kB / 450.4 MB, free: 10.3 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 7.803e-05/0.07571, allocations: 188.1 kB / 450.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.07575, allocations: 11.94 kB / 450.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.656e-05/0.07577, allocations: 7.078 kB / 450.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.07577, allocations: 0 / 450.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.07578, allocations: 7.922 kB / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.07579, allocations: 4 kB / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.07595, allocations: 161.6 kB / 450.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.07595, allocations: 0 / 450.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.531e-05/0.07602, allocations: 15.98 kB / 450.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.07603, allocations: 0 / 450.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.07605, allocations: 4 kB / 450.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.07605, allocations: 4 kB / 450.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.07606, allocations: 0 / 450.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.07629, allocations: 172.3 kB / 450.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.07634, allocations: 81.05 kB / 451 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.07635, allocations: 3.938 kB / 451 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-05/0.07644, allocations: 15.98 kB / 451 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.07648, allocations: 3.938 kB / 451 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.07649, allocations: 3.984 kB / 451 MB, free: 9.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.777e-05/0.07653, allocations: 83.7 kB / 451.1 MB, free: 9.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07654, allocations: 0 / 451.1 MB, free: 9.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002776/0.07682, allocations: 8 kB / 451.1 MB, free: 9.445 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 8.2e-05/0.07691, allocations: 91.25 kB / 451.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.07718, allocations: 59.89 kB / 451.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.0772, allocations: 4 kB / 451.3 MB, free: 9.281 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.786e-05/0.07729, allocations: 19.98 kB / 451.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.07752, allocations: 8.875 kB / 451.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.07785, allocations: 159.7 kB / 451.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.07806, allocations: 0.6729 MB / 452.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.07809, allocations: 11.44 kB / 452.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.0781, allocations: 0 / 452.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of Templates: time 0.001726/0.07983, allocations: 0.6316 MB / 452.8 MB, free: 7.723 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches