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.005062/0.005062, allocations: 106.9 kB / 15.74 MB, free: 5.949 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.001122/0.001122, allocations: 189.2 kB / 16.67 MB, free: 5.879 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.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.0747/0.0747, allocations: 16.77 MB / 307.3 MB, free: 14.37 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 63.91 kB / 426.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08948, allocations: 53.56 MB / 480.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.00201/0.09153, allocations: 0.6763 MB / 480.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002416/0.0918, allocations: 60.14 kB / 480.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.076e-05/0.09186, allocations: 4 kB / 480.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.386e-05/0.09189, allocations: 0 / 480.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.671e-05/0.09199, allocations: 7.922 kB / 480.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.09215, allocations: 12 kB / 480.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.494e-05/0.09226, allocations: 27.92 kB / 480.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.09237, allocations: 11.97 kB / 480.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.257e-05/0.0924, allocations: 8 kB / 480.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.18e-05/0.09246, allocations: 11.92 kB / 480.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.09249, allocations: 4 kB / 480.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.0925, allocations: 4 kB / 481 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.791e-05/0.09253, allocations: 4 kB / 481 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.693e-05/0.09256, allocations: 7.922 kB / 481 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.941e-05/0.09264, allocations: 19.92 kB / 481 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09265, allocations: 0 / 481 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09266, allocations: 0 / 481 MB, free: 4.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.09267, allocations: 4 kB / 481 MB, free: 4.082 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.0004057/0.09308, allocations: 343.4 kB / 481.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.09313, allocations: 8.031 kB / 481.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.605e-05/0.09317, allocations: 8.781 kB / 481.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.09335, allocations: 172.4 kB / 481.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.09337, allocations: 384 / 481.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.09338, allocations: 4.375 kB / 481.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.09357, allocations: 72.81 kB / 481.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.09359, allocations: 192 / 481.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.09361, allocations: 7.938 kB / 481.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.09362, allocations: 0 / 481.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.09377, allocations: 35.91 kB / 481.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003708/0.09415, allocations: 269.8 kB / 481.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.09432, allocations: 69.06 kB / 482 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.572e-05/0.09442, allocations: 33.77 kB / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.09445, allocations: 0 / 482 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.09449, allocations: 34.56 kB / 482 MB, free: 2.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.0945, allocations: 3.938 kB / 482 MB, free: 2.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003288/0.09483, allocations: 93.8 kB / 482.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.0949, allocations: 102.8 kB / 482.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.629e-05/0.09498, allocations: 101.8 kB / 482.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.095, allocations: 25.7 kB / 482.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.716e-05/0.09505, allocations: 84.14 kB / 482.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.09507, allocations: 7.812 kB / 482.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.09512, allocations: 17.72 kB / 482.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.09523, allocations: 314.8 kB / 482.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.447e-05/0.09532, allocations: 28.88 kB / 482.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.797e-05/0.09541, allocations: 38.69 kB / 482.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.09555, allocations: 45.72 kB / 482.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.09556, allocations: 0 / 482.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001923/0.09576, allocations: 77.62 kB / 482.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.09578, allocations: 4 kB / 482.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.09579, allocations: 3.984 kB / 483 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.09581, allocations: 4 kB / 483 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.654e-05/0.0959, allocations: 16.05 kB / 483 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.09591, allocations: 0 / 483 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.187e-05/0.09597, allocations: 11.92 kB / 483 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.09598, allocations: 0 / 483 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.004e-05/0.09606, allocations: 92.14 kB / 483.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.542e-05/0.09611, allocations: 22.56 kB / 483.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.239e-05/0.0962, allocations: 37.67 kB / 483.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.91e-07/0.09621, allocations: 0 / 483.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001149/0.09633, allocations: 57.56 kB / 483.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.278e-06/0.09635, allocations: 10.59 kB / 483.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-06/0.09636, allocations: 0 / 483.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.537e-06/0.09636, allocations: 4 kB / 483.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.486e-05/0.0964, allocations: 8 kB / 483.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-06/0.09641, allocations: 0 / 483.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.765e-05/0.09645, allocations: 12.05 kB / 483.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-06/0.09646, allocations: 0 / 483.2 MB, free: 1.543 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 8.872e-05/0.09656, allocations: 188.2 kB / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.09659, allocations: 3.906 kB / 483.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.216e-05/0.09661, allocations: 7.125 kB / 483.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.09662, allocations: 3.938 kB / 483.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.09663, allocations: 0 / 483.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.09663, allocations: 0 / 483.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.0968, allocations: 165.6 kB / 483.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.09681, allocations: 8 kB / 483.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.503e-05/0.09687, allocations: 11.98 kB / 483.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.09688, allocations: 0 / 483.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.09689, allocations: 0 / 483.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.09689, allocations: 0 / 483.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.0969, allocations: 3.938 kB / 483.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.09713, allocations: 176.3 kB / 483.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.432e-05/0.09718, allocations: 77.11 kB / 483.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.0972, allocations: 4 kB / 483.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.125e-05/0.09727, allocations: 7.984 kB / 483.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.09731, allocations: 4 kB / 483.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.09732, allocations: 0 / 483.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.596e-05/0.09737, allocations: 87.27 kB / 484 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09738, allocations: 4 kB / 484 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.09765, allocations: 4 kB / 484 MB, free: 0.707 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 9.188e-05/0.09775, allocations: 95.25 kB / 484.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002491/0.098, allocations: 55.89 kB / 484.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.09801, allocations: 0 / 484.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.331e-05/0.0981, allocations: 32.17 kB / 484.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.09832, allocations: 3.938 kB / 484.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.09865, allocations: 121.7 kB / 484.3 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.09891, allocations: 0.6768 MB / 484.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4e-05/0.09896, allocations: 8.125 kB / 484.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.748e-05/0.09899, allocations: 7.438 kB / 485 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09899, allocations: 0 / 485 MB, free: 15.64 MB / 366.1 MB Notification: Performance of Templates: time 0.002606/0.1016, allocations: 0.6224 MB / 485.6 MB, free: 15.03 MB / 366.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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches