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.001539/0.001538, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00207/0.00207, allocations: 194 kB / 16.14 MB, free: 6.703 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.633/1.633, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06512/0.06512, allocations: 14.16 MB / 283.5 MB, free: 7.309 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.001438/0.001438, allocations: 59.91 kB / 344.4 MB, free: 19.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09449, allocations: 50.15 MB / 394.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002442/0.09699, allocations: 0.7395 MB / 395.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002093/0.09723, allocations: 55.8 kB / 395.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.473e-05/0.09728, allocations: 4 kB / 395.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.261e-05/0.09734, allocations: 4 kB / 395.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.573e-05/0.09743, allocations: 7.938 kB / 395.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.09757, allocations: 19.97 kB / 395.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.193e-05/0.09767, allocations: 19.98 kB / 395.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.121e-05/0.09776, allocations: 8 kB / 395.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.071e-05/0.09781, allocations: 15.92 kB / 395.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.497e-05/0.09788, allocations: 15.92 kB / 395.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.09791, allocations: 7.938 kB / 395.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.157e-06/0.09792, allocations: 0 / 395.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.646e-05/0.09795, allocations: 4 kB / 395.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.09798, allocations: 11.94 kB / 395.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.09807, allocations: 19.95 kB / 395.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.09808, allocations: 0 / 395.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.09808, allocations: 0 / 395.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.09809, allocations: 0 / 395.5 MB, free: 0.7305 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.0004398/0.09854, allocations: 339.7 kB / 395.8 MB, free: 356 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.09859, allocations: 8.031 kB / 395.8 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.09864, allocations: 4.938 kB / 395.8 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.09884, allocations: 172.4 kB / 396 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.09886, allocations: 4.375 kB / 396 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.09887, allocations: 384 / 396 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.0991, allocations: 72.75 kB / 396 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.09913, allocations: 192 / 396 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.09915, allocations: 7.875 kB / 396 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.09916, allocations: 0 / 396 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.09937, allocations: 44.02 kB / 396.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004511/0.09983, allocations: 269.7 kB / 396.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.1001, allocations: 69.12 kB / 396.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.1002, allocations: 29.77 kB / 396.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1003, allocations: 3.938 kB / 396.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.1003, allocations: 42.48 kB / 396.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1003, allocations: 4 kB / 396.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004116/0.1007, allocations: 89.5 kB / 396.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.1008, allocations: 110.8 kB / 396.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.941e-05/0.1009, allocations: 98 kB / 396.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.1009, allocations: 25.7 kB / 396.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.101, allocations: 84.39 kB / 396.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.101, allocations: 7.906 kB / 396.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/0.101, allocations: 17.7 kB / 396.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1012, allocations: 314.8 kB / 397.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.847e-05/0.1013, allocations: 20.84 kB / 397.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.847e-05/0.1014, allocations: 46.58 kB / 397.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.1016, allocations: 49.62 kB / 397.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.1016, allocations: 0 / 397.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002206/0.1018, allocations: 77.64 kB / 397.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.1018, allocations: 7.984 kB / 397.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1018, allocations: 0 / 397.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.1019, allocations: 0 / 397.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.102, allocations: 11.94 kB / 397.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.102, allocations: 7.984 kB / 397.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.834e-05/0.1021, allocations: 7.984 kB / 397.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1021, allocations: 0 / 397.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.905e-05/0.1022, allocations: 88.12 kB / 397.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.906e-05/0.1022, allocations: 30.64 kB / 397.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.91e-05/0.1023, allocations: 29.7 kB / 397.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.51e-07/0.1023, allocations: 0 / 397.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.000144/0.1025, allocations: 61.47 kB / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.1025, allocations: 12.03 kB / 397.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-06/0.1025, allocations: 0 / 397.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-06/0.1025, allocations: 0 / 397.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.697e-05/0.1026, allocations: 15.98 kB / 397.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-06/0.1026, allocations: 0 / 397.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.309e-05/0.1026, allocations: 4 kB / 397.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-06/0.1026, allocations: 0 / 397.7 MB, free: 14.18 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.0001126/0.1027, allocations: 201.1 kB / 397.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.1028, allocations: 4 kB / 397.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.199e-05/0.1028, allocations: 11.11 kB / 397.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.1028, allocations: 4 kB / 397.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.1028, allocations: 0 / 397.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1028, allocations: 0 / 397.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.103, allocations: 161.6 kB / 398.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.103, allocations: 7.938 kB / 398.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.1031, allocations: 15.98 kB / 398.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1031, allocations: 0 / 398.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.1031, allocations: 0 / 398.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1031, allocations: 0 / 398.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1031, allocations: 4 kB / 398.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.1034, allocations: 172.3 kB / 398.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.1035, allocations: 84.95 kB / 398.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.1035, allocations: 7.984 kB / 398.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.369e-05/0.1036, allocations: 8 kB / 398.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.1036, allocations: 7.984 kB / 398.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-06/0.1036, allocations: 0 / 398.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.944e-05/0.1037, allocations: 83.28 kB / 398.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1037, allocations: 0 / 398.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.104, allocations: 4 kB / 398.5 MB, free: 13.33 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 9.513e-05/0.1041, allocations: 95.25 kB / 398.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002763/0.1044, allocations: 59.89 kB / 398.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1044, allocations: 0 / 398.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.687e-05/0.1045, allocations: 27.97 kB / 398.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.1047, allocations: 3.938 kB / 398.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.1051, allocations: 135.8 kB / 398.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.1055, allocations: 0.677 MB / 399.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.389e-05/0.1055, allocations: 4 kB / 399.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.311e-05/0.1056, allocations: 11.44 kB / 399.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1056, allocations: 0 / 399.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Templates: time 0.002804/0.1084, allocations: 0.5399 MB / 400 MB, free: 11.71 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