Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 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.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_dev_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_dev_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.001394, allocations: 105.7 kB / 16.41 MB, free: 6.496 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.001473/0.001473, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07719/0.07719, allocations: 16.77 MB / 308 MB, free: 14.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.89 kB / 427.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09655, allocations: 53.55 MB / 480.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001934/0.09852, allocations: 0.6737 MB / 481.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002278/0.09878, allocations: 60.14 kB / 481.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.846e-05/0.09883, allocations: 4 kB / 481.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.694e-05/0.09887, allocations: 3.938 kB / 481.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.342e-05/0.09896, allocations: 3.984 kB / 481.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.09912, allocations: 15.94 kB / 481.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.667e-05/0.09921, allocations: 19.98 kB / 481.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.09931, allocations: 7.984 kB / 481.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.431e-05/0.09937, allocations: 19.81 kB / 481.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.721e-05/0.09942, allocations: 7.984 kB / 481.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.09944, allocations: 4 kB / 481.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-06/0.09946, allocations: 8 kB / 481.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.752e-05/0.09948, allocations: 7.984 kB / 481.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.09951, allocations: 7.922 kB / 481.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.136e-05/0.09958, allocations: 15.92 kB / 481.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.0996, allocations: 4 kB / 481.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.0996, allocations: 0 / 481.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.09962, allocations: 0 / 481.7 MB, free: 4.129 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.0003796/0.1, allocations: 339.5 kB / 482 MB, free: 3.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1, allocations: 8.031 kB / 482 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.1001, allocations: 8.844 kB / 482 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.1002, allocations: 164.4 kB / 482.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1003, allocations: 384 / 482.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.1003, allocations: 4.375 kB / 482.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.1005, allocations: 76.73 kB / 482.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1005, allocations: 4.188 kB / 482.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.1005, allocations: 11.92 kB / 482.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1005, allocations: 0 / 482.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.1007, allocations: 31.97 kB / 482.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003377/0.101, allocations: 265.8 kB / 482.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.1012, allocations: 73.16 kB / 482.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.902e-05/0.1013, allocations: 29.77 kB / 482.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.1013, allocations: 3.938 kB / 482.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.1014, allocations: 42.5 kB / 482.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1014, allocations: 0 / 482.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003346/0.1017, allocations: 89.58 kB / 482.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.1018, allocations: 102.8 kB / 482.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.582e-05/0.1018, allocations: 97.84 kB / 483 MB, free: 2.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.1019, allocations: 29.95 kB / 483 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.799e-05/0.1019, allocations: 88.14 kB / 483.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.1019, allocations: 11.8 kB / 483.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.102, allocations: 17.72 kB / 483.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.668e-05/0.1021, allocations: 310.8 kB / 483.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-05/0.1022, allocations: 28.83 kB / 483.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.362e-05/0.1023, allocations: 34.56 kB / 483.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.1024, allocations: 49.62 kB / 483.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1024, allocations: 4 kB / 483.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001937/0.1026, allocations: 77.62 kB / 483.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1027, allocations: 4 kB / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1027, allocations: 0 / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.1027, allocations: 11.88 kB / 483.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.638e-05/0.1028, allocations: 11.98 kB / 483.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.1028, allocations: 0 / 483.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.1029, allocations: 11.92 kB / 483.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1029, allocations: 4 kB / 483.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.405e-05/0.1029, allocations: 92.2 kB / 483.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.316e-05/0.103, allocations: 22.56 kB / 483.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.367e-05/0.1031, allocations: 29.7 kB / 483.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.31e-07/0.1031, allocations: 0 / 483.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001259/0.1032, allocations: 61.62 kB / 483.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.363e-06/0.1032, allocations: 4 kB / 483.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-06/0.1032, allocations: 0 / 483.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-06/0.1032, allocations: 4 kB / 483.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.452e-05/0.1033, allocations: 4 kB / 483.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-06/0.1033, allocations: 0 / 483.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.809e-05/0.1033, allocations: 7.984 kB / 483.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1034, allocations: 0 / 483.9 MB, free: 1.598 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 8.387e-05/0.1034, allocations: 192.1 kB / 484.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.1035, allocations: 7.938 kB / 484.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.185e-05/0.1035, allocations: 11.06 kB / 484.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.1035, allocations: 0 / 484.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1035, allocations: 0 / 484.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1035, allocations: 0 / 484.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.1037, allocations: 169.6 kB / 484.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1037, allocations: 0 / 484.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.694e-05/0.1038, allocations: 8 kB / 484.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1038, allocations: 3.984 kB / 484.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.1038, allocations: 0 / 484.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1038, allocations: 4 kB / 484.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1038, allocations: 0 / 484.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.104, allocations: 176.6 kB / 484.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.1041, allocations: 81.14 kB / 484.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.1041, allocations: 4 kB / 484.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.749e-05/0.1042, allocations: 11.98 kB / 484.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.05e-05/0.1042, allocations: 8 kB / 484.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.1042, allocations: 0 / 484.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.528e-05/0.1043, allocations: 83.28 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1043, allocations: 0 / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.1046, allocations: 4 kB / 484.6 MB, free: 0.7539 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 9.106e-05/0.1047, allocations: 99.23 kB / 484.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002594/0.1049, allocations: 59.89 kB / 484.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1049, allocations: 0 / 484.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.236e-05/0.105, allocations: 27.92 kB / 484.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.1053, allocations: 6.516 kB / 484.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003397/0.1056, allocations: 155.7 kB / 485 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.1059, allocations: 0.6768 MB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.217e-05/0.1059, allocations: 11.44 kB / 485.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1059, allocations: 0 / 485.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Templates: time 0.001951/0.1079, allocations: 0.6192 MB / 486.3 MB, free: 15.04 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches