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.01229/0.01229, allocations: 98.06 kB / 15.73 MB, free: 6.02 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.002401/0.002401, allocations: 190.2 kB / 16.67 MB, free: 5.938 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.611/1.611, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06588/0.06588, allocations: 14.17 MB / 284.1 MB, free: 6.973 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.001704/0.001704, allocations: 59.91 kB / 396.5 MB, free: 16 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.314, allocations: 50.14 MB / 446.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001765/0.3158, allocations: 0.6638 MB / 447.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002239/0.3161, allocations: 64.12 kB / 447.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.448e-05/0.3161, allocations: 0 / 447.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.349e-05/0.3162, allocations: 3.938 kB / 447.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.708e-05/0.3163, allocations: 5.188 kB / 447.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.3164, allocations: 14.73 kB / 447.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.656e-05/0.3165, allocations: 25.73 kB / 447.4 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.3166, allocations: 3.406 kB / 447.4 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.16e-05/0.3167, allocations: 19.5 kB / 447.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.296e-05/0.3167, allocations: 14.95 kB / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.3168, allocations: 2.344 kB / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.3168, allocations: 2.281 kB / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.3168, allocations: 0 / 447.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.3168, allocations: 10 kB / 447.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.012e-05/0.3169, allocations: 24.27 kB / 447.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3169, allocations: 0 / 447.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3169, allocations: 0 / 447.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.317, allocations: 1.188 kB / 447.5 MB, free: 1.461 MB / 318.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.0003829/0.3173, allocations: 335.1 kB / 447.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3174, allocations: 9.688 kB / 447.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.3174, allocations: 1.938 kB / 447.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.3176, allocations: 181 kB / 448 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3176, allocations: 1.531 kB / 448 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.3176, allocations: 1.531 kB / 448 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.3178, allocations: 75.02 kB / 448.1 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3178, allocations: 192 / 448.1 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.3179, allocations: 5.156 kB / 448.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3179, allocations: 0 / 448.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.3181, allocations: 41.17 kB / 448.1 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.3184, allocations: 277.4 kB / 448.4 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.3186, allocations: 73.84 kB / 448.4 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.3187, allocations: 29.75 kB / 448.5 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.3187, allocations: 5.344 kB / 448.5 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.3187, allocations: 35.84 kB / 448.5 MB, free: 352 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3187, allocations: 0 / 448.5 MB, free: 352 kB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003403/0.3191, allocations: 89.38 kB / 448.6 MB, free: 292 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3191, allocations: 112.8 kB / 448.7 MB, free: 156 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.881e-05/0.3192, allocations: 93.45 kB / 448.8 MB, free: 56 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.3192, allocations: 31.42 kB / 448.8 MB, free: 20 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.602e-05/0.3193, allocations: 87.66 kB / 448.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3193, allocations: 9.719 kB / 448.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.3194, allocations: 13.31 kB / 448.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3195, allocations: 316.6 kB / 449.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.748e-05/0.3196, allocations: 21.97 kB / 449.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.3197, allocations: 42.98 kB / 449.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.3199, allocations: 48.06 kB / 449.4 MB, free: 15.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3199, allocations: 4.031 kB / 449.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002018/0.3201, allocations: 83.31 kB / 449.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3201, allocations: 7 kB / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3201, allocations: 0 / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3201, allocations: 0 / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.086e-05/0.3202, allocations: 12.58 kB / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.3203, allocations: 0 / 449.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.427e-05/0.3203, allocations: 13.98 kB / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.3203, allocations: 2.781 kB / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.325e-05/0.3204, allocations: 88.38 kB / 449.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.77e-05/0.3205, allocations: 29.88 kB / 449.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.392e-05/0.3206, allocations: 26.66 kB / 449.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.91e-07/0.3206, allocations: 4.031 kB / 449.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001119/0.3207, allocations: 55.38 kB / 449.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.029e-06/0.3207, allocations: 3.844 kB / 449.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3207, allocations: 3.984 kB / 449.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-06/0.3207, allocations: 384 / 449.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.183e-05/0.3207, allocations: 10.53 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-06/0.3208, allocations: 0 / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.505e-05/0.3208, allocations: 3.812 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-06/0.3208, allocations: 5.406 kB / 449.7 MB, free: 15.23 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 9.559e-05/0.3209, allocations: 185.5 kB / 449.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.3209, allocations: 1.938 kB / 449.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.321, allocations: 13.14 kB / 449.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.321, allocations: 0 / 449.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.321, allocations: 1.219 kB / 449.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.321, allocations: 0 / 449.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.3212, allocations: 163.1 kB / 450.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3212, allocations: 1.594 kB / 450.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.474e-05/0.3212, allocations: 15.39 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3213, allocations: 0 / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-06/0.3213, allocations: 1.219 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3213, allocations: 0.8438 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3213, allocations: 0.9688 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.3215, allocations: 183.1 kB / 450.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/0.3216, allocations: 82.5 kB / 450.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.3216, allocations: 5.469 kB / 450.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.525e-05/0.3217, allocations: 3.875 kB / 450.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.3217, allocations: 6.734 kB / 450.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.3218, allocations: 4.906 kB / 450.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.829e-05/0.3218, allocations: 78.03 kB / 450.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3218, allocations: 5.031 kB / 450.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002697/0.3221, allocations: 14.41 kB / 450.5 MB, free: 14.45 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 0.0001028/0.3222, allocations: 101.6 kB / 450.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002683/0.3225, allocations: 56.55 kB / 450.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3225, allocations: 0 / 450.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.246e-05/0.3226, allocations: 25.75 kB / 450.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.3228, allocations: 14.66 kB / 450.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003289/0.3232, allocations: 114.4 kB / 450.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.3234, allocations: 0.6775 MB / 451.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.479e-05/0.3235, allocations: 6.312 kB / 451.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.323e-05/0.3235, allocations: 9.531 kB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3235, allocations: 0 / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of Templates: time 0.00279/0.3263, allocations: 0.6133 MB / 452.1 MB, free: 13.16 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches