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.001776/0.001784, allocations: 96.33 kB / 15.99 MB, free: 6.355 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.001509/0.001509, allocations: 197.4 kB / 16.91 MB, free: 6.191 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.682/1.682, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0646/0.0646, allocations: 14.16 MB / 284.3 MB, free: 7.266 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.001442/0.001442, allocations: 60.12 kB / 345.2 MB, free: 19.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1162, allocations: 50.13 MB / 395.4 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002082/0.1183, allocations: 0.7481 MB / 396.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002265/0.1185, allocations: 63.78 kB / 396.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.1186, allocations: 4 kB / 396.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.1186, allocations: 3.938 kB / 396.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.388e-05/0.1187, allocations: 0 / 396.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001459/0.1189, allocations: 19.98 kB / 396.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.786e-05/0.119, allocations: 23.92 kB / 396.2 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.923e-05/0.1191, allocations: 8 kB / 396.2 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.337e-05/0.1191, allocations: 15.92 kB / 396.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.575e-05/0.1192, allocations: 15.97 kB / 396.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.1192, allocations: 4 kB / 396.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.456e-06/0.1192, allocations: 0 / 396.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.1192, allocations: 11.94 kB / 396.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.1193, allocations: 7.938 kB / 396.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.932e-05/0.1194, allocations: 19.91 kB / 396.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1194, allocations: 0 / 396.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1194, allocations: 0 / 396.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.1194, allocations: 4 kB / 396.3 MB, free: 0.6172 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.0004965/0.1199, allocations: 339.7 kB / 396.6 MB, free: 240 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1199, allocations: 12.03 kB / 396.6 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.12, allocations: 0.9375 kB / 396.6 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.1202, allocations: 172.3 kB / 396.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1202, allocations: 384 / 396.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.1202, allocations: 8.359 kB / 396.8 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.1204, allocations: 72.81 kB / 396.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1204, allocations: 192 / 396.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.1205, allocations: 7.938 kB / 396.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.1205, allocations: 0 / 396.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.1207, allocations: 35.91 kB / 396.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.1211, allocations: 273.8 kB / 397.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.1212, allocations: 73 kB / 397.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.1214, allocations: 37.83 kB / 397.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.1214, allocations: 0 / 397.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.1214, allocations: 38.48 kB / 397.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1214, allocations: 0 / 397.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.00035/0.1218, allocations: 97.72 kB / 397.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.1219, allocations: 102.8 kB / 397.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.006e-05/0.1219, allocations: 101.8 kB / 397.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.122, allocations: 25.7 kB / 397.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.122, allocations: 84.14 kB / 397.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.122, allocations: 3.906 kB / 397.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.641e-05/0.1221, allocations: 21.7 kB / 397.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1222, allocations: 310.8 kB / 398.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.888e-05/0.1223, allocations: 28.88 kB / 398.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.11e-05/0.1224, allocations: 42.48 kB / 398.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.1226, allocations: 45.72 kB / 398.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1226, allocations: 0 / 398.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001955/0.1228, allocations: 73.55 kB / 398.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1228, allocations: 8 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1228, allocations: 3.984 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1228, allocations: 0 / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.007e-05/0.1229, allocations: 12.06 kB / 398.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1229, allocations: 0 / 398.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.756e-05/0.123, allocations: 11.98 kB / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.123, allocations: 4 kB / 398.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.173e-05/0.1231, allocations: 92.06 kB / 398.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.505e-05/0.1231, allocations: 22.58 kB / 398.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.722e-05/0.1232, allocations: 37.67 kB / 398.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.81e-07/0.1232, allocations: 0 / 398.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001178/0.1234, allocations: 57.53 kB / 398.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.1234, allocations: 8 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-06/0.1234, allocations: 3.938 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.988e-06/0.1234, allocations: 4 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.899e-05/0.1234, allocations: 7.984 kB / 398.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-06/0.1234, allocations: 0 / 398.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.945e-05/0.1235, allocations: 8.438 kB / 398.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.1235, allocations: 4 kB / 398.5 MB, free: 14.07 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.0001036/0.1236, allocations: 193.2 kB / 398.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.1236, allocations: 4 kB / 398.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.242e-05/0.1237, allocations: 11.06 kB / 398.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1237, allocations: 7.969 kB / 398.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1237, allocations: 0 / 398.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1237, allocations: 0 / 398.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.1239, allocations: 165.6 kB / 398.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1239, allocations: 0 / 398.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.113e-05/0.1239, allocations: 11.98 kB / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1239, allocations: 0 / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1239, allocations: 0 / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.124, allocations: 4 kB / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.124, allocations: 0 / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006267/0.1246, allocations: 0.9734 MB / 399.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.922e-05/0.1246, allocations: 77.11 kB / 400 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.1247, allocations: 3.984 kB / 400 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.519e-05/0.1248, allocations: 15.94 kB / 400 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.1248, allocations: 3.984 kB / 400 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.1248, allocations: 4 kB / 400 MB, free: 12.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.438e-05/0.1249, allocations: 79.28 kB / 400.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1249, allocations: 0 / 400.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004905/0.1254, allocations: 8 kB / 400.1 MB, free: 12.38 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.79e-05/0.1255, allocations: 91.25 kB / 400.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.1257, allocations: 63.89 kB / 400.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1257, allocations: 0 / 400.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.742e-05/0.1258, allocations: 23.97 kB / 400.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.1261, allocations: 4 kB / 400.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004064/0.1265, allocations: 232.8 kB / 400.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.1267, allocations: 0.6806 MB / 401.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.262e-05/0.1268, allocations: 8 kB / 401.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.726e-05/0.1268, allocations: 7.438 kB / 401.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1268, allocations: 0 / 401.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Templates: time 0.002593/0.1294, allocations: 0.5671 MB / 401.8 MB, free: 10.63 MB / 302.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=50 -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","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches