Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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 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.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_symb_jac_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_symb_jac_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.001903/0.001903, allocations: 104.1 kB / 15.88 MB, free: 4 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 201.4 kB / 16.8 MB, free: 6.824 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.563/1.563, allocations: 205.1 MB / 222.7 MB, free: 4.82 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06428/0.06428, allocations: 14.16 MB / 284.1 MB, free: 7.348 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.00235/0.002351, allocations: 68.11 kB / 345 MB, free: 19.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.112, allocations: 50.14 MB / 395.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.002246/0.1143, allocations: 0.7481 MB / 395.9 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002283/0.1145, allocations: 59.8 kB / 396 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.726e-05/0.1146, allocations: 0 / 396 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.468e-05/0.1146, allocations: 4 kB / 396 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.845e-05/0.1148, allocations: 0 / 396 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001702/0.1149, allocations: 19.92 kB / 396 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.399e-05/0.115, allocations: 19.98 kB / 396 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.1151, allocations: 4 kB / 396 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.711e-05/0.1152, allocations: 15.92 kB / 396 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.914e-05/0.1153, allocations: 7.984 kB / 396 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.1153, allocations: 0 / 396 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.072e-05/0.1153, allocations: 0 / 396 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.1153, allocations: 15.88 kB / 396.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.1154, allocations: 7.984 kB / 396.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.953e-05/0.1155, allocations: 19.91 kB / 396.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.1155, allocations: 7.938 kB / 396.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1155, allocations: 0 / 396.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1155, allocations: 0 / 396.1 MB, free: 0.75 MB / 286.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.0004515/0.116, allocations: 335.7 kB / 396.4 MB, free: 380 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.116, allocations: 12.03 kB / 396.4 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.116, allocations: 0.9375 kB / 396.4 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.1163, allocations: 168.4 kB / 396.6 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1163, allocations: 4.375 kB / 396.6 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.1163, allocations: 384 / 396.6 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.1165, allocations: 80.73 kB / 396.7 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1165, allocations: 192 / 396.7 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1166, allocations: 3.938 kB / 396.7 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.1166, allocations: 4 kB / 396.7 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.1167, allocations: 35.97 kB / 396.7 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.1173, allocations: 261.9 kB / 397 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.1175, allocations: 77.05 kB / 397.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.1176, allocations: 33.75 kB / 397.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1176, allocations: 0 / 397.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.1177, allocations: 42.44 kB / 397.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1177, allocations: 0 / 397.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004012/0.1181, allocations: 93.55 kB / 397.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.841e-05/0.1182, allocations: 106.8 kB / 397.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.163e-05/0.1183, allocations: 93.86 kB / 397.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1183, allocations: 29.7 kB / 397.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.361e-05/0.1183, allocations: 88.38 kB / 397.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.1184, allocations: 7.906 kB / 397.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/0.1184, allocations: 17.72 kB / 397.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1185, allocations: 310.8 kB / 397.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.481e-05/0.1186, allocations: 28.83 kB / 397.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.661e-05/0.1187, allocations: 34.56 kB / 397.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.1189, allocations: 45.69 kB / 398 MB, free: 14.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.1189, allocations: 0 / 398 MB, free: 14.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002109/0.1191, allocations: 77.59 kB / 398 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.1191, allocations: 8.031 kB / 398.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1192, allocations: 0 / 398.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.1192, allocations: 0 / 398.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.735e-05/0.1193, allocations: 11.98 kB / 398.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1193, allocations: 4 kB / 398.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.142e-05/0.1193, allocations: 4 kB / 398.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.1194, allocations: 3.938 kB / 398.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.191e-05/0.1194, allocations: 92.12 kB / 398.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.755e-05/0.1195, allocations: 30.56 kB / 398.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.159e-05/0.1196, allocations: 29.66 kB / 398.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.31e-07/0.1196, allocations: 0 / 398.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001209/0.1197, allocations: 65.45 kB / 398.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.362e-06/0.1197, allocations: 4.094 kB / 398.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1197, allocations: 8 kB / 398.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-06/0.1197, allocations: 0 / 398.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.497e-05/0.1198, allocations: 8 kB / 398.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-06/0.1198, allocations: 0 / 398.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.643e-05/0.1198, allocations: 4 kB / 398.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-06/0.1198, allocations: 0 / 398.3 MB, free: 14.23 MB / 302.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 0.0001039/0.1199, allocations: 201.2 kB / 398.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.12, allocations: 0 / 398.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.12, allocations: 11.06 kB / 398.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.12, allocations: 4 kB / 398.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.12, allocations: 0 / 398.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.12, allocations: 0 / 398.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.1202, allocations: 173.5 kB / 398.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1202, allocations: 0 / 398.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-05/0.1203, allocations: 8 kB / 398.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1203, allocations: 4 kB / 398.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.1203, allocations: 0 / 398.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1203, allocations: 0 / 398.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1203, allocations: 3.984 kB / 398.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000584/0.1209, allocations: 0.7325 MB / 399.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.121, allocations: 81.52 kB / 399.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.121, allocations: 4 kB / 399.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.899e-05/0.1211, allocations: 12 kB / 399.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.1211, allocations: 7.922 kB / 399.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1211, allocations: 4 kB / 399.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.922e-05/0.1212, allocations: 79.27 kB / 399.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1212, allocations: 0 / 399.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004998/0.1217, allocations: 12 kB / 399.6 MB, free: 12.77 MB / 302.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.443e-05/0.1218, allocations: 107.2 kB / 399.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.122, allocations: 51.89 kB / 399.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1221, allocations: 0 / 399.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.333e-05/0.1221, allocations: 23.92 kB / 399.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.1224, allocations: 4 kB / 399.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004554/0.1228, allocations: 234.5 kB / 400.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1231, allocations: 0.677 MB / 400.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.244e-05/0.1232, allocations: 7.984 kB / 400.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.028e-05/0.1232, allocations: 15.38 kB / 400.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1232, allocations: 0 / 400.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Templates: time 0.002571/0.1258, allocations: 0.5177 MB / 401.3 MB, free: 11.06 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches