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.001442/0.001442, allocations: 110.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.001615/0.001615, allocations: 187 kB / 17.34 MB, free: 5.762 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.321/1.321, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06328/0.06328, 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.001418/0.001418, allocations: 73.45 kB / 397.2 MB, free: 43.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07017/0.0716, allocations: 50.13 MB / 447.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001679/0.07331, allocations: 0.6796 MB / 448 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002112/0.07353, allocations: 64.12 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.821e-05/0.07358, allocations: 0 / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.453e-05/0.07361, allocations: 3.938 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.798e-05/0.07371, allocations: 4 kB / 448 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.07385, allocations: 15.92 kB / 448 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.434e-05/0.07395, allocations: 31.91 kB / 448.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.07406, allocations: 12 kB / 448.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.693e-05/0.07409, allocations: 4 kB / 448.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.032e-05/0.07416, allocations: 23.89 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.07418, allocations: 0 / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.298e-05/0.0742, allocations: 4 kB / 448.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.585e-05/0.07422, allocations: 7.938 kB / 448.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.07424, allocations: 11.94 kB / 448.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.036e-05/0.07433, allocations: 19.97 kB / 448.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.07434, allocations: 3.938 kB / 448.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.07435, allocations: 4 kB / 448.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.07436, allocations: 0 / 448.2 MB, free: 12.81 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.0004002/0.07476, allocations: 331.5 kB / 448.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.0748, allocations: 8.031 kB / 448.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.07484, allocations: 4.938 kB / 448.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.075, allocations: 172.3 kB / 448.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-06/0.07502, allocations: 384 / 448.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.07503, allocations: 4.359 kB / 448.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.07522, allocations: 76.75 kB / 448.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.07523, allocations: 192 / 448.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.07526, allocations: 7.938 kB / 448.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.07527, allocations: 0 / 448.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.07544, allocations: 35.97 kB / 448.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003503/0.0758, allocations: 273.8 kB / 449.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.07598, allocations: 65.12 kB / 449.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.0761, allocations: 37.7 kB / 449.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.07612, allocations: 7.984 kB / 449.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.07616, allocations: 38.48 kB / 449.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.07616, allocations: 0 / 449.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003509/0.07652, allocations: 89.81 kB / 449.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.07659, allocations: 106.8 kB / 449.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.0767, allocations: 101.8 kB / 449.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.07672, allocations: 25.7 kB / 449.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.057e-05/0.07677, allocations: 80.14 kB / 449.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.07679, allocations: 19.75 kB / 449.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.07683, allocations: 13.7 kB / 449.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.07693, allocations: 314.8 kB / 449.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.259e-05/0.07703, allocations: 24.88 kB / 450 MB, free: 10.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.07714, allocations: 38.73 kB / 450 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.07731, allocations: 53.66 kB / 450.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.07732, allocations: 0 / 450.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002088/0.07753, allocations: 73.7 kB / 450.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.07755, allocations: 4 kB / 450.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.07756, allocations: 11.91 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.07758, allocations: 4 kB / 450.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.072e-05/0.07768, allocations: 12.06 kB / 450.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.07769, allocations: 3.938 kB / 450.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.853e-05/0.07775, allocations: 7.984 kB / 450.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.07776, allocations: 0 / 450.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.111e-05/0.07785, allocations: 92.12 kB / 450.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.769e-05/0.07791, allocations: 22.58 kB / 450.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.013e-05/0.07799, allocations: 33.73 kB / 450.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.82e-07/0.078, allocations: 0 / 450.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.000123/0.07813, allocations: 57.56 kB / 450.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.252e-06/0.07814, allocations: 4 kB / 450.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-06/0.07815, allocations: 0 / 450.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-06/0.07816, allocations: 4 kB / 450.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.855e-05/0.0782, allocations: 7.984 kB / 450.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-06/0.07821, allocations: 4.062 kB / 450.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.31e-05/0.07826, allocations: 8 kB / 450.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-06/0.07827, allocations: 0 / 450.4 MB, free: 10.27 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 8.133e-05/0.07835, allocations: 184.2 kB / 450.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.07839, allocations: 7.906 kB / 450.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.07842, allocations: 15.02 kB / 450.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.07842, allocations: 3.984 kB / 450.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.07843, allocations: 0 / 450.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.07844, allocations: 0 / 450.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.07861, allocations: 173.5 kB / 450.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.07861, allocations: 0 / 450.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.459e-05/0.07868, allocations: 11.98 kB / 450.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.07869, allocations: 0 / 450.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.0787, allocations: 0 / 450.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.07871, allocations: 0 / 450.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.07871, allocations: 4 kB / 450.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.07896, allocations: 172.3 kB / 451 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.079, allocations: 81.11 kB / 451 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.07903, allocations: 3.984 kB / 451 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.07912, allocations: 7.938 kB / 451.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.613e-05/0.07917, allocations: 11.92 kB / 451.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.07917, allocations: 0 / 451.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.301e-05/0.07921, allocations: 83.28 kB / 451.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07922, allocations: 4 kB / 451.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.0795, allocations: 8 kB / 451.2 MB, free: 9.418 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 7.294e-05/0.07958, allocations: 91.25 kB / 451.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002776/0.07986, allocations: 55.89 kB / 451.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.07987, allocations: 256 / 451.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.211e-05/0.07997, allocations: 31.97 kB / 451.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.08019, allocations: 4.875 kB / 451.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/0.08052, allocations: 155.3 kB / 451.5 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.08074, allocations: 0.6768 MB / 452.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.08079, allocations: 11.56 kB / 452.2 MB, free: 8.324 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.0808, allocations: 4 kB / 452.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of Templates: time 0.001781/0.08258, allocations: 0.6448 MB / 452.8 MB, free: 7.676 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches