Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.001139/0.001139, 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.001166/0.001166, allocations: 194.1 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.181/0.181, allocations: 16.78 MB / 306.9 MB, free: 14.9 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 60.14 kB / 371.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2539, allocations: 53.56 MB / 424.8 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001615/0.2556, allocations: 0.7305 MB / 425.5 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001651/0.2557, allocations: 59.67 kB / 425.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.841e-05/0.2558, allocations: 0 / 425.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.83e-05/0.2558, allocations: 0 / 425.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.883e-05/0.2559, allocations: 1.625 kB / 425.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001113/0.256, allocations: 20.97 kB / 425.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.685e-05/0.2561, allocations: 17.89 kB / 425.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.731e-05/0.2562, allocations: 11.83 kB / 425.6 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.31e-05/0.2562, allocations: 13.59 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.951e-05/0.2563, allocations: 10.91 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.2563, allocations: 2.812 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-06/0.2563, allocations: 2.625 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.2563, allocations: 10.09 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.2563, allocations: 16.02 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.522e-05/0.2564, allocations: 11.34 kB / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2564, allocations: 0 / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2564, allocations: 0 / 425.7 MB, free: 38.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2564, allocations: 2.562 kB / 425.7 MB, free: 38.88 MB / 350.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.0002872/0.2567, allocations: 341.6 kB / 426.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.863e-05/0.2567, allocations: 12.58 kB / 426.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.92e-05/0.2568, allocations: 7.844 kB / 426.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.2569, allocations: 169.6 kB / 426.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.2569, allocations: 384 / 426.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.2569, allocations: 4.031 kB / 426.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.2571, allocations: 71.2 kB / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2571, allocations: 192 / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.2571, allocations: 3.938 kB / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2571, allocations: 8.562 kB / 426.3 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.2573, allocations: 39.03 kB / 426.4 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002573/0.2575, allocations: 261.1 kB / 426.6 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.2577, allocations: 78.47 kB / 426.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.855e-05/0.2578, allocations: 30.69 kB / 426.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.2578, allocations: 0 / 426.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.2578, allocations: 40.56 kB / 426.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.2578, allocations: 0.9375 kB / 426.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003233/0.2582, allocations: 88.62 kB / 426.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.2582, allocations: 105.8 kB / 427 MB, free: 37.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.331e-05/0.2583, allocations: 105.2 kB / 427.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-06/0.2583, allocations: 25.95 kB / 427.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.286e-05/0.2583, allocations: 91.02 kB / 427.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.2583, allocations: 3.906 kB / 427.2 MB, free: 37.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.728e-05/0.2583, allocations: 18.42 kB / 427.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.51e-05/0.2584, allocations: 317 kB / 427.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.3e-05/0.2585, allocations: 17.09 kB / 427.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.249e-05/0.2585, allocations: 42.25 kB / 427.6 MB, free: 37.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.2587, allocations: 47.17 kB / 427.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2587, allocations: 0 / 427.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001848/0.2589, allocations: 82.75 kB / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.2589, allocations: 3 kB / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2589, allocations: 0 / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2589, allocations: 2.594 kB / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.056e-05/0.259, allocations: 10.12 kB / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.259, allocations: 0 / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.778e-05/0.2591, allocations: 7.078 kB / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.2591, allocations: 2.75 kB / 427.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.898e-05/0.2592, allocations: 97.14 kB / 427.8 MB, free: 36.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 3.864e-05/0.2592, allocations: 27.84 kB / 427.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 6.386e-05/0.2593, allocations: 28.47 kB / 427.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.41e-07/0.2593, allocations: 0 / 427.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001023/0.2594, allocations: 65.84 kB / 427.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/0.2594, allocations: 5.438 kB / 427.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-06/0.2594, allocations: 3.938 kB / 427.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-06/0.2594, allocations: 3.938 kB / 427.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.184e-05/0.2594, allocations: 5.406 kB / 427.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.825e-06/0.2595, allocations: 6.281 kB / 428 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.594e-05/0.2595, allocations: 4.391 kB / 428 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-06/0.2595, allocations: 0 / 428 MB, free: 36.89 MB / 350.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 5.132e-05/0.2596, allocations: 183.2 kB / 428.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.2596, allocations: 4.031 kB / 428.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.079e-05/0.2596, allocations: 12.81 kB / 428.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2596, allocations: 0 / 428.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2596, allocations: 3.125 kB / 428.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.2596, allocations: 3.062 kB / 428.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.2597, allocations: 159.2 kB / 428.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2598, allocations: 2.688 kB / 428.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.2598, allocations: 12.86 kB / 428.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.2598, allocations: 2.625 kB / 428.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.2598, allocations: 3.75 kB / 428.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2599, allocations: 4 kB / 428.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2599, allocations: 2.656 kB / 428.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002003/0.2601, allocations: 168.2 kB / 428.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.735e-05/0.2601, allocations: 87.3 kB / 428.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.2601, allocations: 4 kB / 428.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.155e-05/0.2602, allocations: 8.594 kB / 428.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.2602, allocations: 2.812 kB / 428.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.2602, allocations: 0 / 428.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.207e-05/0.2603, allocations: 84.94 kB / 428.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2603, allocations: 3.938 kB / 428.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002622/0.2605, allocations: 5.625 kB / 428.7 MB, free: 36.18 MB / 350.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.321e-05/0.2606, allocations: 101.9 kB / 428.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002718/0.2609, allocations: 62.48 kB / 428.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2609, allocations: 0 / 428.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.677e-05/0.261, allocations: 17.91 kB / 428.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.2612, allocations: 14.89 kB / 428.9 MB, free: 36.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002817/0.2615, allocations: 136.1 kB / 429 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.2616, allocations: 0.6749 MB / 429.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.225e-05/0.2617, allocations: 11.25 kB / 429.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.2617, allocations: 10.88 kB / 429.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.844e-06/0.2617, allocations: 0 / 429.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of Templates: time 0.002043/0.2638, allocations: 0.5381 MB / 430.3 MB, free: 35.19 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches