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.001279/0.001279, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001749/0.001749, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.775/1.775, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06761/0.06761, allocations: 14.16 MB / 284.5 MB, free: 7.133 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.0005041/0.0005042, allocations: 12 kB / 346.1 MB, free: 19.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1051, allocations: 51.12 MB / 397.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001146/0.1063, allocations: 406.5 kB / 397.7 MB, free: 332 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002609/0.1066, allocations: 43.84 kB / 397.7 MB, free: 288 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.863e-05/0.1067, allocations: 4 kB / 397.7 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.155e-05/0.1067, allocations: 3.938 kB / 397.7 MB, free: 280 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.636e-05/0.1068, allocations: 0 / 397.7 MB, free: 280 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001828/0.107, allocations: 19.97 kB / 397.7 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.1071, allocations: 19.92 kB / 397.8 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.055e-05/0.1072, allocations: 4 kB / 397.8 MB, free: 236 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.869e-05/0.1073, allocations: 11.94 kB / 397.8 MB, free: 224 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.028e-05/0.1073, allocations: 11.92 kB / 397.8 MB, free: 212 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.1074, allocations: 0 / 397.8 MB, free: 212 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.524e-06/0.1074, allocations: 0 / 397.8 MB, free: 212 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.507e-05/0.1074, allocations: 4 kB / 397.8 MB, free: 208 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.722e-05/0.1074, allocations: 33.69 kB / 397.8 MB, free: 168 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.896e-05/0.1075, allocations: 15.97 kB / 397.8 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.1075, allocations: 3.938 kB / 397.8 MB, free: 148 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1075, allocations: 3.938 kB / 397.8 MB, free: 144 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1075, allocations: 4 kB / 397.8 MB, free: 140 kB / 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.0004793/0.108, allocations: 335.5 kB / 398.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.1081, allocations: 20 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.851e-05/0.1081, allocations: 0 / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1083, allocations: 163.1 kB / 398.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.1083, allocations: 8 kB / 398.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.819e-06/0.1084, allocations: 0 / 398.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.1086, allocations: 88.17 kB / 398.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.1086, allocations: 0 / 398.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.1087, allocations: 0 / 398.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.1087, allocations: 0 / 398.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.1089, allocations: 47.91 kB / 398.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004602/0.1093, allocations: 269.8 kB / 398.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.1095, allocations: 81.16 kB / 398.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1096, allocations: 37.77 kB / 398.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.1097, allocations: 0 / 398.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/0.1097, allocations: 34.56 kB / 398.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.1097, allocations: 0 / 398.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000399/0.1101, allocations: 105.6 kB / 399 MB, free: 14.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.1102, allocations: 102.8 kB / 399.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1103, allocations: 101.8 kB / 399.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1104, allocations: 25.7 kB / 399.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.643e-05/0.1104, allocations: 88.05 kB / 399.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.088e-05/0.1104, allocations: 8.156 kB / 399.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-06/0.1105, allocations: 4 kB / 399.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1106, allocations: 318.7 kB / 399.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.326e-05/0.1107, allocations: 23.98 kB / 399.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.36e-05/0.1108, allocations: 42.55 kB / 399.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.543e-05/0.1109, allocations: 19.98 kB / 399.7 MB, free: 14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1109, allocations: 4 kB / 399.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002194/0.1111, allocations: 85.58 kB / 399.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.951e-05/0.1112, allocations: 101.9 kB / 399.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1112, allocations: 0 / 399.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1112, allocations: 0 / 399.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.981e-05/0.1113, allocations: 16.05 kB / 399.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.1113, allocations: 4 kB / 399.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.443e-05/0.1114, allocations: 8 kB / 399.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.1114, allocations: 0 / 399.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.975e-06/0.1114, allocations: 4 kB / 399.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 9.187e-05/0.1115, allocations: 27.91 kB / 400 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-06/0.1115, allocations: 3.938 kB / 400 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.861e-06/0.1116, allocations: 3.953 kB / 400 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.362e-05/0.1116, allocations: 16.05 kB / 400 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-06/0.1116, allocations: 0 / 400 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.262e-05/0.1116, allocations: 4 kB / 400 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.1117, allocations: 0 / 400 MB, free: 13.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.1118, allocations: 193.1 kB / 400.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.85e-05/0.1118, allocations: 3.906 kB / 400.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.482e-05/0.1118, allocations: 15.06 kB / 400.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1118, allocations: 4 kB / 400.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1119, allocations: 4 kB / 400.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1119, allocations: 0 / 400.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.1121, allocations: 153.7 kB / 400.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1121, allocations: 4 kB / 400.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-05/0.1121, allocations: 15.92 kB / 400.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.1121, allocations: 0 / 400.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-06/0.1122, allocations: 0 / 400.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.1122, allocations: 11.95 kB / 400.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1122, allocations: 0 / 400.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.1124, allocations: 180.6 kB / 400.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.1125, allocations: 89.03 kB / 400.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.1125, allocations: 0 / 400.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.042e-05/0.1126, allocations: 12 kB / 400.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.1127, allocations: 11.94 kB / 400.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.1127, allocations: 4 kB / 400.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.86e-05/0.1127, allocations: 75.28 kB / 400.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.582e-06/0.1127, allocations: 0 / 400.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.113, allocations: 11.94 kB / 400.8 MB, free: 12.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001054/0.1131, allocations: 95.25 kB / 400.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002627/0.1134, allocations: 63.89 kB / 400.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.1134, allocations: 4 kB / 400.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.751e-05/0.1135, allocations: 32.28 kB / 401 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.1138, allocations: 4 kB / 401 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003588/0.1141, allocations: 119.5 kB / 401.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.1144, allocations: 0.677 MB / 401.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.706e-05/0.1145, allocations: 8.062 kB / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.733e-05/0.1145, allocations: 7.438 kB / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1145, allocations: 0 / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Templates: time 0.002582/0.1171, allocations: 0.4906 MB / 402.3 MB, free: 11.28 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