Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001067/0.001067, allocations: 115 kB / 17.09 MB, free: 5.957 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.0009936/0.0009936, allocations: 200.2 kB / 18.02 MB, free: 5.043 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.369/1.369, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06246/0.06246, allocations: 14.16 MB / 285.4 MB, free: 13.86 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.001405/0.001405, allocations: 68.45 kB / 397.8 MB, free: 43.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06562/0.06704, allocations: 50.14 MB / 448 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001681/0.06876, allocations: 0.6785 MB / 448.6 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002076/0.06898, allocations: 56.14 kB / 448.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.204e-05/0.06902, allocations: 4 kB / 448.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.317e-05/0.06905, allocations: 3.938 kB / 448.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.788e-05/0.06912, allocations: 3.984 kB / 448.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001312/0.06927, allocations: 19.92 kB / 448.7 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.014e-05/0.06937, allocations: 23.92 kB / 448.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.417e-05/0.06946, allocations: 4 kB / 448.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.86e-05/0.06949, allocations: 19.97 kB / 448.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.206e-05/0.06955, allocations: 15.92 kB / 448.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.06957, allocations: 4 kB / 448.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.558e-06/0.06959, allocations: 0 / 448.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.491e-05/0.06961, allocations: 11.94 kB / 448.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.571e-05/0.06964, allocations: 11.92 kB / 448.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 6.572e-05/0.06971, allocations: 15.98 kB / 448.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.06972, allocations: 3.938 kB / 448.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.06973, allocations: 0 / 448.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.06974, allocations: 0 / 448.8 MB, free: 12.81 MB / 334.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.0003817/0.07013, allocations: 339.5 kB / 449.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.07016, allocations: 8.031 kB / 449.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.0702, allocations: 0.9375 kB / 449.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.07035, allocations: 180.3 kB / 449.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-06/0.07037, allocations: 384 / 449.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.07039, allocations: 4.375 kB / 449.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.07057, allocations: 72.75 kB / 449.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.07059, allocations: 4.188 kB / 449.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.07061, allocations: 3.938 kB / 449.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.07062, allocations: 0 / 449.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.07078, allocations: 39.94 kB / 449.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000346/0.07114, allocations: 277.8 kB / 449.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.07132, allocations: 69.12 kB / 449.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.748e-05/0.07143, allocations: 33.75 kB / 449.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.07146, allocations: 4 kB / 449.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.07148, allocations: 34.5 kB / 449.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.07149, allocations: 4 kB / 449.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003515/0.07185, allocations: 89.58 kB / 450 MB, free: 11.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/0.07191, allocations: 107.1 kB / 450.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.693e-05/0.07198, allocations: 97.86 kB / 450.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.072, allocations: 25.7 kB / 450.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.81e-05/0.07205, allocations: 84.14 kB / 450.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.988e-05/0.07207, allocations: 19.73 kB / 450.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.07211, allocations: 13.72 kB / 450.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.07222, allocations: 314.8 kB / 450.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.306e-05/0.07232, allocations: 28.84 kB / 450.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.819e-05/0.07241, allocations: 38.55 kB / 450.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.07256, allocations: 45.62 kB / 450.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.07258, allocations: 4.031 kB / 450.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000201/0.07278, allocations: 77.59 kB / 450.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.07281, allocations: 8 kB / 450.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.07282, allocations: 3.938 kB / 450.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.07283, allocations: 0 / 450.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.791e-05/0.07292, allocations: 11.98 kB / 450.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.07294, allocations: 3.938 kB / 450.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.557e-05/0.073, allocations: 12.06 kB / 450.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.07301, allocations: 0 / 450.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.859e-05/0.07308, allocations: 88.12 kB / 450.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.952e-05/0.07314, allocations: 30.56 kB / 451 MB, free: 10.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.161e-05/0.07322, allocations: 21.72 kB / 451 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.42e-07/0.07323, allocations: 4.031 kB / 451 MB, free: 10.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001263/0.07336, allocations: 57.56 kB / 451 MB, free: 10.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.07338, allocations: 8 kB / 451.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-06/0.07338, allocations: 3.984 kB / 451.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-06/0.07339, allocations: 0 / 451.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.873e-05/0.07343, allocations: 4 kB / 451.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.07344, allocations: 4 kB / 451.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.869e-05/0.07349, allocations: 0 / 451.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-06/0.0735, allocations: 8.062 kB / 451.1 MB, free: 10.26 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 8.226e-05/0.07358, allocations: 184.2 kB / 451.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.07362, allocations: 11.91 kB / 451.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.949e-05/0.07364, allocations: 11.02 kB / 451.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.07365, allocations: 0 / 451.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.07366, allocations: 0 / 451.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.07367, allocations: 4 kB / 451.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.07383, allocations: 161.6 kB / 451.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.07383, allocations: 4 kB / 451.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.458e-05/0.07391, allocations: 16 kB / 451.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.07391, allocations: 0 / 451.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.07393, allocations: 4 kB / 451.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.07393, allocations: 3.984 kB / 451.5 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.07394, allocations: 0 / 451.5 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005914/0.07453, allocations: 0.9622 MB / 452.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.317e-05/0.07458, allocations: 77.11 kB / 452.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.0746, allocations: 4 kB / 452.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.857e-05/0.07469, allocations: 11.92 kB / 452.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.07474, allocations: 19.86 kB / 452.5 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.07475, allocations: 4 kB / 452.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.03e-05/0.07479, allocations: 75.28 kB / 452.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07479, allocations: 0 / 452.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000514/0.07531, allocations: 8 kB / 452.6 MB, free: 8.57 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 8.076e-05/0.0754, allocations: 103.2 kB / 452.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.07567, allocations: 55.95 kB / 452.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.07568, allocations: 0 / 452.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.627e-05/0.07577, allocations: 23.92 kB / 452.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.07599, allocations: 5.266 kB / 452.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003726/0.07637, allocations: 262.7 kB / 453.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.0766, allocations: 0.6729 MB / 453.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.07664, allocations: 11.44 kB / 453.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.07664, allocations: 0 / 453.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of Templates: time 0.00172/0.07837, allocations: 0.653 MB / 454.4 MB, free: 6.707 MB / 334.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches