Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 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.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_dev_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_dev_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.001455/0.001455, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001667/0.001667, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.381/1.381, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1919/0.1919, allocations: 16.78 MB / 306.9 MB, free: 14.9 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.91 kB / 371.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3271, allocations: 53.54 MB / 424.8 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001853/0.329, allocations: 0.738 MB / 425.5 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002095/0.3292, allocations: 56.62 kB / 425.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.482e-05/0.3293, allocations: 0 / 425.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.241e-05/0.3293, allocations: 3.375 kB / 425.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.329e-05/0.3294, allocations: 4.562 kB / 425.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001408/0.3296, allocations: 15.75 kB / 425.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.937e-05/0.3297, allocations: 31.53 kB / 425.6 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.614e-05/0.3298, allocations: 9.938 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.753e-05/0.3298, allocations: 10.36 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.955e-05/0.3298, allocations: 14.31 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.3299, allocations: 2.906 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.676e-06/0.3299, allocations: 2.75 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.3299, allocations: 5.797 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.3299, allocations: 13.73 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.994e-05/0.33, allocations: 17.58 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.33, allocations: 12.03 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.33, allocations: 2.812 kB / 425.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.33, allocations: 0 / 425.7 MB, free: 38.82 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.0003359/0.3304, allocations: 333.9 kB / 426.1 MB, free: 38.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3304, allocations: 11.94 kB / 426.1 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.3305, allocations: 0.9375 kB / 426.1 MB, free: 38.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.3306, allocations: 170.7 kB / 426.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.3306, allocations: 6.594 kB / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.976e-06/0.3306, allocations: 384 / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.3308, allocations: 74.39 kB / 426.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.3308, allocations: 3.422 kB / 426.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3308, allocations: 6.875 kB / 426.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.3308, allocations: 3.938 kB / 426.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.331, allocations: 41.58 kB / 426.4 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.3313, allocations: 263.8 kB / 426.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.3315, allocations: 74.52 kB / 426.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.433e-05/0.3315, allocations: 32.69 kB / 426.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.3316, allocations: 0 / 426.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3316, allocations: 41.66 kB / 426.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3316, allocations: 4 kB / 426.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003202/0.332, allocations: 93.03 kB / 426.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.332, allocations: 102.8 kB / 427 MB, free: 37.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.618e-05/0.3321, allocations: 98.59 kB / 427.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.3321, allocations: 29.58 kB / 427.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.213e-05/0.3321, allocations: 88.08 kB / 427.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.3321, allocations: 6.562 kB / 427.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.3322, allocations: 16.22 kB / 427.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.176e-05/0.3322, allocations: 314.1 kB / 427.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.73e-05/0.3323, allocations: 23.47 kB / 427.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.742e-05/0.3324, allocations: 45.39 kB / 427.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.3325, allocations: 47.08 kB / 427.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3325, allocations: 3.938 kB / 427.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001721/0.3327, allocations: 80.95 kB / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.3327, allocations: 6.219 kB / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3327, allocations: 0 / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3328, allocations: 0 / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.896e-05/0.3329, allocations: 15.89 kB / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.3329, allocations: 0 / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.232e-05/0.3329, allocations: 9.016 kB / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.3329, allocations: 0 / 427.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.311e-05/0.333, allocations: 92.56 kB / 427.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 3.825e-05/0.3331, allocations: 24.33 kB / 427.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 6.635e-05/0.3331, allocations: 31.94 kB / 427.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.32e-07/0.3331, allocations: 0 / 427.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001032/0.3332, allocations: 65.14 kB / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/0.3333, allocations: 8.219 kB / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-06/0.3333, allocations: 3.938 kB / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-06/0.3333, allocations: 2.812 kB / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.275e-05/0.3333, allocations: 5.875 kB / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-06/0.3333, allocations: 0 / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.75e-05/0.3334, allocations: 9.953 kB / 428 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-06/0.3334, allocations: 0 / 428 MB, free: 36.84 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.052e-05/0.3334, allocations: 183.2 kB / 428.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.3334, allocations: 6.844 kB / 428.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.096e-05/0.3335, allocations: 6.812 kB / 428.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.3335, allocations: 0 / 428.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.3335, allocations: 2.938 kB / 428.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3335, allocations: 3.234 kB / 428.2 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.3336, allocations: 161.3 kB / 428.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3336, allocations: 0 / 428.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.55e-05/0.3337, allocations: 8.062 kB / 428.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3337, allocations: 0 / 428.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.3337, allocations: 6.922 kB / 428.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3337, allocations: 7.938 kB / 428.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3337, allocations: 0 / 428.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.3339, allocations: 173.2 kB / 428.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.07e-05/0.3339, allocations: 84.02 kB / 428.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.334, allocations: 3.469 kB / 428.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.597e-05/0.334, allocations: 11.05 kB / 428.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.3341, allocations: 6.594 kB / 428.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.3341, allocations: 0 / 428.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.269e-05/0.3341, allocations: 80.64 kB / 428.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3341, allocations: 0 / 428.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.3344, allocations: 15.97 kB / 428.7 MB, free: 36.13 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.257e-05/0.3345, allocations: 98.3 kB / 428.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.3347, allocations: 58.98 kB / 428.9 MB, free: 36.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3347, allocations: 3.938 kB / 428.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.604e-05/0.3348, allocations: 20.95 kB / 428.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.335, allocations: 10.44 kB / 428.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.3353, allocations: 133.6 kB / 429 MB, free: 35.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.3354, allocations: 0.6777 MB / 429.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.759e-05/0.3355, allocations: 7.938 kB / 429.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.928e-05/0.3355, allocations: 13.59 kB / 429.7 MB, free: 35.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3355, allocations: 0 / 429.7 MB, free: 35.19 MB / 350.1 MB Notification: Performance of Templates: time 0.002349/0.3379, allocations: 0.5629 MB / 430.3 MB, free: 35.14 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches