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.000952/0.0009518, allocations: 98.7 kB / 15.99 MB, free: 6.348 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.0009969/0.000997, allocations: 193.7 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.673/1.673, allocations: 205.1 MB / 222.8 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06203/0.06203, allocations: 14.15 MB / 284.3 MB, free: 7.25 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.001693/0.001693, allocations: 64.58 kB / 345.2 MB, free: 19.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1285, allocations: 50.15 MB / 395.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002729/0.1313, allocations: 0.7403 MB / 396.1 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002708/0.1316, allocations: 55.8 kB / 396.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.01e-05/0.1317, allocations: 4 kB / 396.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.411e-05/0.1317, allocations: 0 / 396.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.1319, allocations: 7.938 kB / 396.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001899/0.1321, allocations: 19.98 kB / 396.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.1322, allocations: 27.97 kB / 396.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1324, allocations: 7.984 kB / 396.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.88e-05/0.1324, allocations: 15.86 kB / 396.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.6e-05/0.1325, allocations: 11.98 kB / 396.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.1325, allocations: 4 kB / 396.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.345e-05/0.1325, allocations: 4 kB / 396.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.1326, allocations: 11.88 kB / 396.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.1326, allocations: 7.984 kB / 396.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.765e-05/0.1327, allocations: 23.91 kB / 396.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1327, allocations: 0 / 396.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1327, allocations: 0 / 396.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.1327, allocations: 0 / 396.3 MB, free: 0.6016 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.0005616/0.1333, allocations: 343.7 kB / 396.6 MB, free: 220 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.1334, allocations: 8.031 kB / 396.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.1334, allocations: 0.9375 kB / 396.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.1336, allocations: 172.4 kB / 396.8 MB, free: 0 / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1337, allocations: 384 / 396.8 MB, free: 0 / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.1337, allocations: 8.422 kB / 396.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.134, allocations: 68.75 kB / 396.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.134, allocations: 4.188 kB / 396.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.134, allocations: 7.938 kB / 396.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.134, allocations: 0 / 396.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.1342, allocations: 39.95 kB / 396.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005179/0.1347, allocations: 265.8 kB / 397.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.135, allocations: 77.16 kB / 397.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.492e-05/0.1351, allocations: 29.77 kB / 397.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.1351, allocations: 0 / 397.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.1351, allocations: 38.44 kB / 397.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.1351, allocations: 4 kB / 397.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003853/0.1355, allocations: 97.48 kB / 397.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.295e-05/0.1356, allocations: 102.8 kB / 397.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.45e-05/0.1357, allocations: 101.8 kB / 397.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.1357, allocations: 25.7 kB / 397.7 MB, free: 15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.1358, allocations: 84.14 kB / 397.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.1358, allocations: 7.906 kB / 397.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.1359, allocations: 17.97 kB / 397.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.136, allocations: 310.8 kB / 398.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.684e-05/0.1361, allocations: 28.83 kB / 398.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.23e-05/0.1362, allocations: 34.56 kB / 398.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.1364, allocations: 49.66 kB / 398.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1364, allocations: 0 / 398.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001997/0.1366, allocations: 77.59 kB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1366, allocations: 8 kB / 398.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1366, allocations: 4.062 kB / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1367, allocations: 0 / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.695e-05/0.1368, allocations: 15.92 kB / 398.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1368, allocations: 0 / 398.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.805e-05/0.1368, allocations: 11.98 kB / 398.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.1369, allocations: 3.938 kB / 398.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.353e-05/0.1369, allocations: 84.14 kB / 398.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.024e-05/0.137, allocations: 30.56 kB / 398.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.253e-05/0.1371, allocations: 29.73 kB / 398.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.11e-07/0.1371, allocations: 0 / 398.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001199/0.1372, allocations: 61.47 kB / 398.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/0.1372, allocations: 8 kB / 398.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-06/0.1372, allocations: 4.031 kB / 398.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-06/0.1372, allocations: 4.062 kB / 398.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.88e-05/0.1373, allocations: 8 kB / 398.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.1373, allocations: 4 kB / 398.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.806e-05/0.1373, allocations: 3.984 kB / 398.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.1374, allocations: 4 kB / 398.5 MB, free: 14.05 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.000109/0.1375, allocations: 197.1 kB / 398.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.731e-05/0.1375, allocations: 8 kB / 398.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.118e-05/0.1375, allocations: 7.062 kB / 398.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1375, allocations: 0 / 398.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1375, allocations: 4 kB / 398.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1376, allocations: 4 kB / 398.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.1378, allocations: 165.6 kB / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1378, allocations: 0 / 398.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.155e-05/0.1379, allocations: 11.98 kB / 398.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1379, allocations: 0 / 398.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.1379, allocations: 4 kB / 398.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1379, allocations: 0 / 398.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1379, allocations: 0 / 398.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.1389, allocations: 0.9656 MB / 399.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.139, allocations: 81.11 kB / 400 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.139, allocations: 4 kB / 400 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.1391, allocations: 11.92 kB / 400 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.1391, allocations: 4 kB / 400 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/0.1393, allocations: 4 kB / 400 MB, free: 12.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.398e-05/0.1393, allocations: 79.27 kB / 400.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1393, allocations: 0 / 400.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005314/0.1399, allocations: 8 kB / 400.1 MB, free: 12.37 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 0.0001092/0.14, allocations: 103.2 kB / 400.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003958/0.1404, allocations: 55.89 kB / 400.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1404, allocations: 0 / 400.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.539e-05/0.1405, allocations: 19.98 kB / 400.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.1408, allocations: 8.375 kB / 400.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004865/0.1413, allocations: 232.5 kB / 400.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.1415, allocations: 0.6768 MB / 401.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.472e-05/0.1416, allocations: 8 kB / 401.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.1416, allocations: 7.438 kB / 401.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1416, allocations: 0 / 401.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Templates: time 0.002975/0.1446, allocations: 0.5712 MB / 401.8 MB, free: 10.62 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=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/jenkins/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