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.00122/0.00122, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001366/0.001366, allocations: 191.2 kB / 16.25 MB, free: 6.633 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.537/1.537, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06424/0.06424, allocations: 14.14 MB / 283.6 MB, free: 7.277 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.001659/0.001659, allocations: 60.12 kB / 344.6 MB, free: 19.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09299, allocations: 50.14 MB / 394.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002219/0.09526, allocations: 0.7397 MB / 395.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001925/0.09548, allocations: 55.8 kB / 395.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.415e-05/0.09553, allocations: 4 kB / 395.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.256e-05/0.09558, allocations: 0 / 395.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.593e-05/0.09565, allocations: 11.94 kB / 395.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001223/0.09578, allocations: 19.97 kB / 395.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.413e-05/0.09585, allocations: 19.98 kB / 395.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.403e-05/0.09593, allocations: 12 kB / 395.6 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.088e-05/0.09597, allocations: 15.86 kB / 395.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.466e-05/0.09602, allocations: 11.98 kB / 395.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.09604, allocations: 4 kB / 395.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.464e-06/0.09606, allocations: 0 / 395.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.739e-05/0.09608, allocations: 11.94 kB / 395.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.082e-05/0.09611, allocations: 15.92 kB / 395.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.764e-05/0.09619, allocations: 19.91 kB / 395.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.0962, allocations: 0 / 395.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.0962, allocations: 0 / 395.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.09621, allocations: 0 / 395.6 MB, free: 0.6211 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.0004635/0.09668, allocations: 339.7 kB / 396 MB, free: 244 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.09672, allocations: 12.03 kB / 396 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.09676, allocations: 0.9375 kB / 396 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.09699, allocations: 172.4 kB / 396.2 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-06/0.09701, allocations: 4.375 kB / 396.2 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.09703, allocations: 4.375 kB / 396.2 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.09723, allocations: 68.83 kB / 396.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.09724, allocations: 192 / 396.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.09726, allocations: 7.938 kB / 396.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.09727, allocations: 0 / 396.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.09743, allocations: 47.94 kB / 396.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003711/0.09781, allocations: 265.8 kB / 396.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.09798, allocations: 69.06 kB / 396.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.361e-05/0.09808, allocations: 37.81 kB / 396.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.09811, allocations: 0 / 396.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.09813, allocations: 38.44 kB / 396.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.09814, allocations: 0 / 396.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003309/0.09847, allocations: 101.5 kB / 396.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.09853, allocations: 102.8 kB / 396.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.302e-05/0.0986, allocations: 97.86 kB / 397 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.09862, allocations: 25.7 kB / 397 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.86e-05/0.09866, allocations: 84.14 kB / 397.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.09869, allocations: 12.14 kB / 397.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/0.09873, allocations: 17.72 kB / 397.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.09883, allocations: 310.8 kB / 397.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.498e-05/0.09892, allocations: 24.84 kB / 397.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.09903, allocations: 38.55 kB / 397.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001477/0.09919, allocations: 49.66 kB / 397.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.0992, allocations: 0 / 397.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001996/0.0994, allocations: 77.59 kB / 397.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.09942, allocations: 12.06 kB / 397.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.09943, allocations: 0 / 397.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.09945, allocations: 0 / 397.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.865e-05/0.09954, allocations: 15.92 kB / 397.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.09956, allocations: 0 / 397.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.208e-05/0.09961, allocations: 4 kB / 397.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.09963, allocations: 4 kB / 397.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.875e-05/0.0997, allocations: 92.06 kB / 397.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.218e-05/0.09976, allocations: 34.56 kB / 397.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 6.883e-05/0.09984, allocations: 21.72 kB / 397.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.31e-07/0.09984, allocations: 0 / 397.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.000124/0.09997, allocations: 61.47 kB / 397.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.09999, allocations: 8 kB / 397.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-06/0.1, allocations: 4.078 kB / 397.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-06/0.1, allocations: 4 kB / 397.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.643e-05/0.1, allocations: 4 kB / 397.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.003e-06/0.1001, allocations: 0 / 397.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.752e-05/0.1001, allocations: 4 kB / 397.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.1001, allocations: 8 kB / 397.9 MB, free: 14.07 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 0.0001022/0.1002, allocations: 200 kB / 398.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.1003, allocations: 8 kB / 398.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.027e-05/0.1003, allocations: 7.062 kB / 398.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1003, allocations: 4 kB / 398.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1003, allocations: 0 / 398.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1003, allocations: 0 / 398.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.1006, allocations: 169.5 kB / 398.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1006, allocations: 0 / 398.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.151e-05/0.1006, allocations: 12 kB / 398.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1007, allocations: 0 / 398.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.1007, allocations: 0 / 398.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1007, allocations: 4 kB / 398.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1007, allocations: 3.984 kB / 398.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.1009, allocations: 180.6 kB / 398.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.432e-05/0.101, allocations: 81.02 kB / 398.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.101, allocations: 0 / 398.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.1011, allocations: 11.98 kB / 398.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.1011, allocations: 8.031 kB / 398.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.1011, allocations: 0 / 398.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.949e-05/0.1012, allocations: 83.28 kB / 398.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1012, allocations: 0 / 398.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.1014, allocations: 8 kB / 398.6 MB, free: 13.22 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 0.0001861/0.1016, allocations: 95.23 kB / 398.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.1019, allocations: 63.89 kB / 398.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1019, allocations: 0 / 398.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.674e-05/0.102, allocations: 19.98 kB / 398.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.1022, allocations: 11.31 kB / 398.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003085/0.1025, allocations: 126.2 kB / 398.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.1028, allocations: 0.6806 MB / 399.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.923e-05/0.1028, allocations: 8 kB / 399.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.735e-05/0.1028, allocations: 7.438 kB / 399.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1028, allocations: 0 / 399.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Templates: time 0.002547/0.1054, allocations: 0.5654 MB / 400.2 MB, free: 11.59 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/jenkins/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