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.001382/0.001382, allocations: 102.2 kB / 16.27 MB, free: 6 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.001172/0.001172, allocations: 191 kB / 17.2 MB, free: 5.609 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.337/1.337, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06491/0.06491, allocations: 14.18 MB / 284.6 MB, free: 13.93 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.002598/0.002598, allocations: 71.89 kB / 345.7 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2123, allocations: 50.12 MB / 395.9 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001678/0.214, allocations: 0.6852 MB / 396.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001912/0.2142, allocations: 63.09 kB / 396.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.125e-05/0.2142, allocations: 1.156 kB / 396.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.099e-05/0.2143, allocations: 0 / 396.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.735e-05/0.2143, allocations: 4.938 kB / 396.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001215/0.2145, allocations: 16.3 kB / 396.6 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.989e-05/0.2145, allocations: 30.33 kB / 396.7 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.687e-05/0.2146, allocations: 14.94 kB / 396.7 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.433e-05/0.2147, allocations: 7.562 kB / 396.7 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.447e-05/0.2147, allocations: 12.11 kB / 396.7 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.2147, allocations: 2.781 kB / 396.7 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.097e-06/0.2148, allocations: 1.812 kB / 396.7 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.2148, allocations: 13.36 kB / 396.7 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.174e-05/0.2148, allocations: 5.312 kB / 396.7 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.865e-05/0.2149, allocations: 24.64 kB / 396.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2149, allocations: 0 / 396.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2149, allocations: 9.406 kB / 396.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2149, allocations: 0 / 396.7 MB, free: 47.22 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.000301/0.2152, allocations: 329.5 kB / 397.1 MB, free: 46.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.2152, allocations: 9.062 kB / 397.1 MB, free: 46.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.2153, allocations: 10.45 kB / 397.1 MB, free: 46.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.2154, allocations: 171.3 kB / 397.3 MB, free: 46.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.162e-06/0.2154, allocations: 5.531 kB / 397.3 MB, free: 46.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.2154, allocations: 1.625 kB / 397.3 MB, free: 46.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.2156, allocations: 79.89 kB / 397.3 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2156, allocations: 1.531 kB / 397.3 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.2156, allocations: 3.938 kB / 397.3 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2156, allocations: 1.25 kB / 397.3 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.2158, allocations: 36.59 kB / 397.4 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002824/0.2161, allocations: 270.4 kB / 397.6 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.2163, allocations: 69.56 kB / 397.7 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.338e-05/0.2164, allocations: 39.95 kB / 397.8 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.2164, allocations: 0 / 397.8 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.243e-05/0.2164, allocations: 36.28 kB / 397.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.2164, allocations: 0 / 397.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003487/0.2168, allocations: 95.52 kB / 397.9 MB, free: 46.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.725e-05/0.2168, allocations: 104.4 kB / 398 MB, free: 45.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.47e-05/0.2168, allocations: 101.2 kB / 398.1 MB, free: 45.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.2169, allocations: 26.89 kB / 398.1 MB, free: 45.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.099e-05/0.2169, allocations: 89.17 kB / 398.2 MB, free: 45.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.2169, allocations: 9.094 kB / 398.2 MB, free: 45.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.2169, allocations: 13.25 kB / 398.2 MB, free: 45.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.461e-05/0.217, allocations: 324.1 kB / 398.5 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.907e-05/0.2171, allocations: 19.44 kB / 398.6 MB, free: 45.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.657e-05/0.2172, allocations: 38.22 kB / 398.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.2173, allocations: 52.36 kB / 398.6 MB, free: 45.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2174, allocations: 0 / 398.6 MB, free: 45.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002037/0.2176, allocations: 77.61 kB / 398.7 MB, free: 45.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.2176, allocations: 5.094 kB / 398.7 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2176, allocations: 0 / 398.7 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2176, allocations: 5.438 kB / 398.7 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.812e-05/0.2177, allocations: 15.34 kB / 398.7 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-06/0.2177, allocations: 1.312 kB / 398.7 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.783e-05/0.2178, allocations: 9.797 kB / 398.8 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.2178, allocations: 1.281 kB / 398.8 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 5.773e-05/0.2179, allocations: 87.95 kB / 398.8 MB, free: 45.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.598e-05/0.2179, allocations: 25.53 kB / 398.9 MB, free: 45.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.908e-05/0.218, allocations: 35.7 kB / 398.9 MB, free: 45.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.72e-07/0.218, allocations: 5 kB / 398.9 MB, free: 45.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001255/0.2181, allocations: 61.06 kB / 399 MB, free: 45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.2182, allocations: 6.656 kB / 399 MB, free: 45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-06/0.2182, allocations: 1.156 kB / 399 MB, free: 45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-06/0.2182, allocations: 1.125 kB / 399 MB, free: 45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.005e-05/0.2182, allocations: 8.562 kB / 399 MB, free: 44.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.2182, allocations: 5.328 kB / 399 MB, free: 44.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.185e-05/0.2183, allocations: 2.844 kB / 399 MB, free: 44.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-06/0.2183, allocations: 1.469 kB / 399 MB, free: 44.99 MB / 318.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 6.465e-05/0.2183, allocations: 187 kB / 399.2 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.2184, allocations: 1.406 kB / 399.2 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.2184, allocations: 12.42 kB / 399.2 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2184, allocations: 1.406 kB / 399.2 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2184, allocations: 4 kB / 399.2 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2184, allocations: 5.359 kB / 399.2 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.2186, allocations: 163 kB / 399.4 MB, free: 44.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2186, allocations: 4 kB / 399.4 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/0.2187, allocations: 11.77 kB / 399.4 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2187, allocations: 1.062 kB / 399.4 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.2187, allocations: 1.094 kB / 399.4 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2187, allocations: 1.062 kB / 399.4 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2187, allocations: 0 / 399.4 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.2189, allocations: 179.9 kB / 399.6 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.804e-05/0.2189, allocations: 78.27 kB / 399.6 MB, free: 44.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.219, allocations: 1.156 kB / 399.6 MB, free: 44.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.627e-05/0.2191, allocations: 9.109 kB / 399.6 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.2191, allocations: 10.36 kB / 399.7 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.2191, allocations: 5.5 kB / 399.7 MB, free: 44.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.454e-05/0.2192, allocations: 77.97 kB / 399.7 MB, free: 44.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2192, allocations: 0 / 399.7 MB, free: 44.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002871/0.2195, allocations: 11.25 kB / 399.7 MB, free: 44.21 MB / 318.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 6.425e-05/0.2195, allocations: 96.16 kB / 399.8 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002685/0.2198, allocations: 56.89 kB / 399.9 MB, free: 44.1 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2198, allocations: 1.219 kB / 399.9 MB, free: 44.1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.2199, allocations: 25.33 kB / 399.9 MB, free: 44.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.2201, allocations: 14.55 kB / 399.9 MB, free: 44.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002923/0.2204, allocations: 147.3 kB / 400.1 MB, free: 43.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.44e-05/0.2205, allocations: 0.6726 MB / 400.7 MB, free: 43.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/0.2206, allocations: 10.72 kB / 400.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2206, allocations: 0 / 400.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of Templates: time 0.00164/0.2222, allocations: 0.6546 MB / 401.4 MB, free: 42.89 MB / 318.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